public abstract class GraphComponent
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
fromGraph(Graph<?> graph)
Checks whether this component is from a particular graph
|
boolean |
fromSameGraphAs(GraphComponent component)
Checks whether this component is from the same graph as another component
|
void |
removeFromGraph()
Removes this component from the graph it is a part of.
|
java.lang.String |
toString() |
public boolean fromGraph(Graph<?> graph)
graph
- the Graph to check forpublic boolean fromSameGraphAs(GraphComponent component)
component
- the GraphComponent to check againstpublic void removeFromGraph()
public java.lang.String toString()
toString
in class java.lang.Object