|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.adapters.drasys.graph.DRAGraphAsGraph
public class DRAGraphAsGraph
Constructor Summary | |
---|---|
DRAGraphAsGraph()
|
|
DRAGraphAsGraph(drasys.or.graph.GraphI draGraph)
|
Method Summary | |
---|---|
protected Edge |
convertToEdge(drasys.or.graph.EdgeI draEdge)
|
protected Node |
convertToNode(drasys.or.graph.VertexI draVertex)
|
EdgeIterator |
getAllEdgesIterator()
|
NodeIterator |
getAllNodesIterator()
Return an iterator for all nodes in the graph |
drasys.or.graph.GraphI |
getDraGraph()
|
Class |
getEdgeClass()
|
Object |
getEdgeValue(Edge e)
|
Node |
getFirstNode(Edge e)
Return the first node of an edge. |
EdgeIterator |
getIncidentEdges(Node v)
Return an iterator for the local neighborhood of v |
EdgeIterator |
getIncomingEdges(Node v)
Get all incoming edges of a given node |
Class |
getNodeClass()
|
int |
getNumEdges()
|
int |
getNumNodes()
Return number of nodes in the graph. |
Node |
getOtherNode(Edge e,
Node v)
Given an edge and an incident node, return the other node of the edge |
EdgeIterator |
getOutgoingEdges(Node v)
Get all outgoing edges of a given node |
Node |
getSecondNode(Edge e)
Return the second node of an edge. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DRAGraphAsGraph()
public DRAGraphAsGraph(drasys.or.graph.GraphI draGraph)
Method Detail |
---|
public Class getNodeClass()
getNodeClass
in interface Graph
public Class getEdgeClass()
getEdgeClass
in interface Graph
public final EdgeIterator getAllEdgesIterator()
getAllEdgesIterator
in interface GlobalEdgesGraphProp
public final int getNumEdges()
getNumEdges
in interface GlobalEdgesGraphProp
public final NodeIterator getAllNodesIterator()
GlobalNodesGraphProp
getAllNodesIterator
in interface GlobalNodesGraphProp
public final int getNumNodes()
GlobalNodesGraphProp
getNumNodes
in interface GlobalNodesGraphProp
public final EdgeIterator getOutgoingEdges(Node v)
OutgoingEdgeNeighborhoodGraphProp
getOutgoingEdges
in interface OutgoingEdgeNeighborhoodGraphProp
public final EdgeIterator getIncomingEdges(Node v)
IncomingEdgeNeighborhoodGraphProp
getIncomingEdges
in interface IncomingEdgeNeighborhoodGraphProp
public final Node getFirstNode(Edge e)
NeighborhoodGraphProp
getFirstNode
in interface NeighborhoodGraphProp
e
- the edge
public final EdgeIterator getIncidentEdges(Node v)
NeighborhoodGraphProp
getIncidentEdges
in interface NeighborhoodGraphProp
v
- the node for which the neighborhood shall be given.
public final Node getOtherNode(Edge e, Node v)
NeighborhoodGraphProp
getOtherNode
in interface NeighborhoodGraphProp
e
- the given edgev
- the give node
public final Node getSecondNode(Edge e)
NeighborhoodGraphProp
getSecondNode
in interface NeighborhoodGraphProp
e
- the edge
public final drasys.or.graph.GraphI getDraGraph()
public final Object getEdgeValue(Edge e)
protected Node convertToNode(drasys.or.graph.VertexI draVertex)
protected Edge convertToEdge(drasys.or.graph.EdgeI draEdge)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |