|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UndirectedGraph
Graph with only undirected edges. Note that undirected graph can be obtained even if all edges are directed. The graph is just taking care to ignore opposite edges.
GraphModel
Method Summary | |
---|---|
boolean |
addEdge(Node node1,
Node node2)
Add an undirected edge between node1 and node2 to the graph. |
Edge |
getEdge(Node node1,
Node node2)
Find and returns an edge that connects node1 and node2 . |
Methods inherited from interface org.gephi.graph.api.Graph |
---|
addEdge, addNode, clear, clearEdges, clearEdges, contains, contains, getDegree, getEdge, getEdge, getEdgeCount, getEdges, getEdges, getEdgeVersion, getGraphModel, getNeighbors, getNode, getNode, getNodeCount, getNodes, getNodeVersion, getOpposite, getView, isAdjacent, isAdjacent, isDirected, isSelfLoop, readLock, readUnlock, readUnlockAll, removeEdge, removeNode, setId, setId, writeLock, writeUnlock |
Method Detail |
---|
boolean addEdge(Node node1, Node node2)
node1
and node2
to the graph.
Graph does not accept parallel edges.
Fails if a such edge already exists in the graph.
node1
- the first nodenode2
- the second node
java.lang.IllegalArgumentException
- if source
or target
is null
or not legal nodes for this edge
java.lang.IllegalMonitorStateException
- if the current thread is holding a read lockEdge getEdge(Node node1, Node node2)
node1
and node2
. Returns
null
if no such edge is found.
Warning: This method is not thread safe, be sure to call it in a locked statement.
getEdge
in interface Graph
node1
- the first incident node of the queried edgenode2
- thge second incident node of the queried edge
node1
and node2
or null
if no such edge exists
java.lang.IllegalArgumentException
- if node1
or node2
is null
or not legal nodes in the graph
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |