|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fhstralsund.vinets.structure.DefaultNetElement
de.fhstralsund.vinets.structure.AbstractGraph
public abstract class AbstractGraph
The base class for implementations of the Graph interface.
Field Summary | |
---|---|
protected java.util.Set |
E
|
protected GraphType |
gType
|
protected java.util.Set |
V
|
Fields inherited from class de.fhstralsund.vinets.structure.DefaultNetElement |
---|
host, labelMap, original |
Constructor Summary | |
---|---|
protected |
AbstractGraph(GraphType type,
java.lang.String name,
NetElement host,
java.lang.Object data)
|
Method Summary | |
---|---|
int |
countEdges()
Returns the number of Links in this Graph. |
int |
countNodes()
Returns the number of Nodes in this Graph. |
java.util.Iterator |
edges()
Delivers an Iterator over all Links in this Graph. |
java.util.Set |
edgeSet()
Delivers the Set of Links in this Graph. |
boolean |
equals(java.lang.Object o)
|
GraphType |
getGraphType()
Returns the Type of the Graph. |
int |
hashCode()
|
boolean |
isDirected()
All Links of a directed Graph are directed Edges between two Nodes. |
boolean |
isHyperGraph()
A HyperGraph may contain HyperEdges that have more than two end vertices. |
boolean |
isMixed()
A mixed Graph may contain some undirected and some directed Edges, but all Links have exactly two end Nodes. |
boolean |
isUndirected()
All Links of an undirected Graph are undirected Edges between two Nodes. |
java.util.Iterator |
nodes()
Delivers an Iterator over all Nodes in this Graph. |
java.util.Set |
nodeSet()
Delivers the Set of Nodes in this Graph. |
java.lang.String |
toString()
Returns a string representation of this NetElement. |
Methods inherited from class de.fhstralsund.vinets.structure.DefaultNetElement |
---|
clearLabels, clone, containsLabel, getBooleanLabel, getData, getDoubleLabel, getGeometry, getHost, getID, getIntLabel, getLabel, getLabelKeySet, getName, getOriginal, getRepresentation, removeLabel, setBooleanLabel, setData, setDoubleLabel, setGeometry, setIntLabel, setLabel, setName, setRepresentation |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.fhstralsund.vinets.structure.Graph |
---|
clone, createEdge, createEdge, createEdge, createNode, createNode, createNode, remove |
Methods inherited from interface de.fhstralsund.vinets.structure.NetElement |
---|
clearLabels, containsLabel, getBooleanLabel, getData, getDoubleLabel, getGeometry, getHost, getID, getIntLabel, getLabel, getLabelKeySet, getName, getOriginal, getRepresentation, removeLabel, setBooleanLabel, setData, setDoubleLabel, setGeometry, setIntLabel, setLabel, setName, setRepresentation |
Field Detail |
---|
protected java.util.Set V
protected java.util.Set E
protected GraphType gType
Constructor Detail |
---|
protected AbstractGraph(GraphType type, java.lang.String name, NetElement host, java.lang.Object data)
Method Detail |
---|
public boolean isDirected()
Graph
isDirected
in interface Graph
public boolean isUndirected()
Graph
isUndirected
in interface Graph
public boolean isMixed()
Graph
isMixed
in interface Graph
public boolean isHyperGraph()
Graph
isHyperGraph
in interface Graph
public int countNodes()
Graph
countNodes
in interface Graph
public int countEdges()
Graph
countEdges
in interface Graph
public java.util.Iterator nodes()
Graph
nodes
in interface Graph
public java.util.Set nodeSet()
Graph
nodeSet
in interface Graph
public java.util.Iterator edges()
Graph
edges
in interface Graph
public java.util.Set edgeSet()
Graph
edgeSet
in interface Graph
public GraphType getGraphType()
getGraphType
in interface Graph
public java.lang.String toString()
DefaultNetElement
toString
in class DefaultNetElement
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |