|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectnet.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 wrapped| Method Detail |
|---|
public Class getNodeClass()
getNodeClass in interface Graphpublic Class getEdgeClass()
getEdgeClass in interface Graphpublic EdgeIterator getIncidentEdges(Node v)
NeighborhoodGraphProp
getIncidentEdges in interface NeighborhoodGraphPropv - the node for which the neighborhood shall be given.
public EdgeIterator getOutgoingEdges(Node v)
OutgoingEdgeNeighborhoodGraphProp
getOutgoingEdges in interface OutgoingEdgeNeighborhoodGraphProppublic EdgeIterator getIncomingEdges(Node v)
IncomingEdgeNeighborhoodGraphProp
getIncomingEdges in interface IncomingEdgeNeighborhoodGraphProp
public Node getOtherNode(Edge e,
Node v)
NeighborhoodGraphProp
getOtherNode in interface NeighborhoodGraphPrope - the given edgev - the give node
public Node getFirstNode(Edge e)
NeighborhoodGraphProp
getFirstNode in interface NeighborhoodGraphPrope - the edge
public Node getSecondNode(Edge e)
NeighborhoodGraphProp
getSecondNode in interface NeighborhoodGraphPrope - the edge
public NodeIterator getAllNodesIterator()
GlobalNodesGraphProp
getAllNodesIterator in interface GlobalNodesGraphProppublic int getNumNodes()
GlobalNodesGraphProp
getNumNodes in interface GlobalNodesGraphProppublic Node getNode(int index)
GlobalIndexedNodesGraphProp
getNode in interface GlobalIndexedNodesGraphProppublic EdgeIterator getAllEdgesIterator()
getAllEdgesIterator in interface GlobalEdgesGraphProppublic int getNumEdges()
getNumEdges in interface GlobalEdgesGraphProppublic 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 | ||||||||