|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.adapters.jgraph.JGraphModelAsGraph
public class JGraphModelAsGraph
Use a JGraph GraphModel as a Combean Graph
Field Summary |
---|
Fields inherited from interface net.sourceforge.combean.interfaces.graph.prop.GlobalIndexedNodesGraphProp |
---|
UNDEFINED_NODE |
Fields inherited from interface net.sourceforge.combean.interfaces.graph.prop.GlobalIndexedEdgesGraphProp |
---|
UNDEFINED_EDGE |
Constructor Summary | |
---|---|
JGraphModelAsGraph(org.jgraph.graph.GraphModel jgraph)
Constructor |
Method Summary | |
---|---|
EdgeIterator |
getAllEdgesIterator()
|
NodeIterator |
getAllNodesIterator()
Return an iterator for all nodes in the graph |
Edge |
getEdge(int index)
Return the edge with a given index |
Class |
getEdgeClass()
|
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 |
Node |
getNode(int index)
Returns the node with the given index. |
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 JGraphModelAsGraph(org.jgraph.graph.GraphModel jgraph)
jgraph
- the GraphModel to be wrappedMethod Detail |
---|
public Class getNodeClass()
getNodeClass
in interface Graph
public Class getEdgeClass()
getEdgeClass
in interface Graph
public EdgeIterator getIncidentEdges(Node v)
NeighborhoodGraphProp
getIncidentEdges
in interface NeighborhoodGraphProp
v
- the node for which the neighborhood shall be given.
public EdgeIterator getOutgoingEdges(Node v)
OutgoingEdgeNeighborhoodGraphProp
getOutgoingEdges
in interface OutgoingEdgeNeighborhoodGraphProp
public EdgeIterator getIncomingEdges(Node v)
IncomingEdgeNeighborhoodGraphProp
getIncomingEdges
in interface IncomingEdgeNeighborhoodGraphProp
public Node getOtherNode(Edge e, Node v)
NeighborhoodGraphProp
getOtherNode
in interface NeighborhoodGraphProp
e
- the given edgev
- the give node
public Node getFirstNode(Edge e)
NeighborhoodGraphProp
getFirstNode
in interface NeighborhoodGraphProp
e
- the edge
public Node getSecondNode(Edge e)
NeighborhoodGraphProp
getSecondNode
in interface NeighborhoodGraphProp
e
- the edge
public NodeIterator getAllNodesIterator()
GlobalNodesGraphProp
getAllNodesIterator
in interface GlobalNodesGraphProp
public int getNumNodes()
GlobalNodesGraphProp
getNumNodes
in interface GlobalNodesGraphProp
public Node getNode(int index)
GlobalIndexedNodesGraphProp
getNode
in interface GlobalIndexedNodesGraphProp
public EdgeIterator getAllEdgesIterator()
getAllEdgesIterator
in interface GlobalEdgesGraphProp
public int getNumEdges()
getNumEdges
in interface GlobalEdgesGraphProp
public Edge getEdge(int index)
GlobalIndexedEdgesGraphProp
getEdge
in interface GlobalIndexedEdgesGraphProp
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |