Package | Description |
---|---|
org.graphstream.graph | |
org.graphstream.graph.implementations | |
org.graphstream.ui.graphicGraph |
Modifier and Type | Interface and Description |
---|---|
interface |
EdgeFactory<T extends Edge>
An interface aimed at dynamically creating edge objects.
|
Modifier and Type | Method and Description |
---|---|
<T extends Edge> |
Path.getEdgeSet() |
Modifier and Type | Method and Description |
---|---|
default Edge |
Graph.addEdge(java.lang.String id,
int index1,
int index2)
Like
Graph.addEdge(String, String, String) but the nodes are identified by
their indices. |
default Edge |
Graph.addEdge(java.lang.String id,
int fromIndex,
int toIndex,
boolean directed)
Like
Graph.addEdge(String, String, String, boolean) but the nodes are
identified by their indices. |
default Edge |
Graph.addEdge(java.lang.String id,
Node node1,
Node node2)
Like
Graph.addEdge(String, String, String) but the node references are
given instead of node identifiers. |
Edge |
Graph.addEdge(java.lang.String id,
Node from,
Node to,
boolean directed)
Like
Graph.addEdge(String, String, String, boolean) but the node
references are given instead of node identifiers. |
default Edge |
Graph.addEdge(java.lang.String id,
java.lang.String node1,
java.lang.String node2)
Adds an undirected edge between nodes.
|
default Edge |
Graph.addEdge(java.lang.String id,
java.lang.String from,
java.lang.String to,
boolean directed)
Like
Graph.addEdge(String, String, String) , but this edge can be directed
between the two given nodes. |
Edge |
Node.getEdge(int i)
I-th edge.
|
Edge |
Graph.getEdge(int index)
Get an edge by its index.
|
Edge |
Graph.getEdge(java.lang.String id)
Get an edge by its identifier.
|
Edge |
Node.getEdgeBetween(int index)
Retrieves an edge between this node and the node with index i if one exists.
|
Edge |
Node.getEdgeBetween(Node node)
Retrieves an edge between this node and and another node if one exists.
|
Edge |
Node.getEdgeBetween(java.lang.String id)
Retrieve an edge between this node and the node 'id', if it exits.
|
Edge |
Node.getEdgeFrom(int index)
Retrieves an edge that leaves node with given index toward this node.
|
Edge |
Node.getEdgeFrom(Node node)
Retrieves an edge that leaves given node toward this node.
|
Edge |
Node.getEdgeFrom(java.lang.String id)
Retrieve an edge that leaves node 'id' toward this node.
|
Edge |
Node.getEdgeToward(int index)
Retrieves an edge that leaves this node toward the node with given index.
|
Edge |
Node.getEdgeToward(Node node)
Retrieves an edge that leaves this node toward another node.
|
Edge |
Node.getEdgeToward(java.lang.String id)
Retrieve an edge that leaves this node toward 'id'.
|
Edge |
Node.getEnteringEdge(int i)
I-th entering edge.
|
Edge |
Node.getLeavingEdge(int i)
I-th leaving edge.
|
Edge |
Path.peekEdge()
Looks at the edge at the top of the stack without removing it from the stack.
|
Edge |
Path.popEdge()
This methods pops the 2 stacks (
edgePath and
nodePath ) and returns the removed edge. |
Edge |
Graph.removeEdge(Edge edge)
Removes an edge.
|
default Edge |
Graph.removeEdge(int index)
Removes an edge with a given index.
|
default Edge |
Graph.removeEdge(int fromIndex,
int toIndex)
Removes an edge between two nodes.
|
Edge |
Graph.removeEdge(Node node1,
Node node2)
Removes an edge between two nodes.
|
default Edge |
Graph.removeEdge(java.lang.String id)
Removes an edge knowing its identifier.
|
default Edge |
Graph.removeEdge(java.lang.String from,
java.lang.String to)
Remove an edge given the identifiers of its two endpoints.
|
Modifier and Type | Method and Description |
---|---|
EdgeFactory<? extends Edge> |
Graph.edgeFactory()
The factory used to create edge instances.
|
java.util.stream.Stream<Edge> |
Path.edges() |
java.util.stream.Stream<Edge> |
Node.edges()
Stream over all entering and leaving edges.
|
java.util.stream.Stream<Edge> |
Structure.edges() |
default java.util.stream.Stream<Edge> |
Node.enteringEdges()
Stream over all entering edges.
|
java.util.List<Edge> |
Path.getEdgePath()
Returns the list of edges representing the path.
|
default java.util.Iterator<Edge> |
Node.iterator() |
default java.util.stream.Stream<Edge> |
Node.leavingEdges()
Stream over all leaving edges.
|
Modifier and Type | Method and Description |
---|---|
void |
Path.add(Edge edge)
Adds an edge to the path.
|
void |
Path.add(Node from,
Edge edge)
Adds a node and an edge to the path.
|
boolean |
Path.contains(Edge edge)
Says whether the path contains this edge or not.
|
void |
Path.push(Edge edge)
A synonym for
Path.add(Edge) . |
void |
Path.push(Node from,
Edge edge)
A synonym for
Path.add(Edge) . |
Edge |
Graph.removeEdge(Edge edge)
Removes an edge.
|
Modifier and Type | Method and Description |
---|---|
void |
Graph.setEdgeFactory(EdgeFactory<? extends Edge> ef)
Set the edge factory used to create edges.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractEdge
This class provides a basic implementation of
Edge interface, to
minimize the effort required to implement this interface. |
Modifier and Type | Method and Description |
---|---|
<T extends Edge> |
MultiNode.getEdgeSetBetween(int index) |
<T extends Edge> |
MultiNode.getEdgeSetBetween(Node node) |
<T extends Edge> |
MultiNode.getEdgeSetBetween(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
Edge |
AbstractGraph.addEdge(java.lang.String id,
Node from,
Node to,
boolean directed) |
Edge |
AdjacencyListGraph.getEdge(int index) |
Edge |
AdjacencyListNode.getEdge(int i) |
Edge |
AdjacencyListGraph.getEdge(java.lang.String id) |
Edge |
AbstractNode.getEdgeBetween(int index)
This implementation uses
Node.getEdgeBetween(Node) |
Edge |
AdjacencyListNode.getEdgeBetween(Node node) |
Edge |
AbstractNode.getEdgeBetween(java.lang.String id)
This implementation uses
Node.getEdgeBetween(Node) |
Edge |
AbstractNode.getEdgeFrom(int index)
This implementation uses
Node.getEdgeFrom(Node) |
Edge |
AdjacencyListNode.getEdgeFrom(Node node) |
Edge |
AbstractNode.getEdgeFrom(java.lang.String id)
This implementation uses
Node.getEdgeFrom(Node) |
Edge |
AbstractNode.getEdgeToward(int index)
This implementation uses
Node.getEdgeToward(Node) |
Edge |
AdjacencyListNode.getEdgeToward(Node node) |
Edge |
AbstractNode.getEdgeToward(java.lang.String id)
This implementation uses
Node.getEdgeToward(Node) |
Edge |
AdjacencyListNode.getEnteringEdge(int i) |
Edge |
AdjacencyListNode.getLeavingEdge(int i) |
Edge |
AbstractGraph.removeEdge(Edge edge) |
Edge |
AbstractGraph.removeEdge(Node node1,
Node node2) |
Modifier and Type | Method and Description |
---|---|
EdgeFactory<? extends Edge> |
AbstractGraph.edgeFactory() |
java.util.stream.Stream<Edge> |
AdjacencyListGraph.edges() |
java.util.stream.Stream<Edge> |
AdjacencyListNode.edges() |
java.util.stream.Stream<Edge> |
AdjacencyListNode.enteringEdges() |
java.util.stream.Stream<Edge> |
AdjacencyListNode.leavingEdges() |
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractNode.isEnteringEdge(Edge e)
Checks if an edge enters this node.
|
boolean |
AbstractNode.isIncidentEdge(Edge e)
Checks if an edge is incident to this node.
|
boolean |
AbstractNode.isLeavingEdge(Edge e)
Checks if an edge leaves this node.
|
Edge |
AbstractGraph.removeEdge(Edge edge) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractGraph.setEdgeFactory(EdgeFactory<? extends Edge> ef) |
Modifier and Type | Class and Description |
---|---|
class |
GraphicEdge
Graphical edge.
|
Modifier and Type | Method and Description |
---|---|
Edge |
GraphicGraph.addEdge(java.lang.String id,
int index1,
int index2) |
Edge |
GraphicGraph.addEdge(java.lang.String id,
int fromIndex,
int toIndex,
boolean directed) |
Edge |
GraphicGraph.addEdge(java.lang.String id,
Node node1,
Node node2) |
Edge |
GraphicGraph.addEdge(java.lang.String id,
Node from,
Node to,
boolean directed) |
Edge |
GraphicGraph.addEdge(java.lang.String id,
java.lang.String from,
java.lang.String to,
boolean directed) |
Edge |
GraphicGraph.getEdge(int index) |
Edge |
GraphicNode.getEdge(int i) |
Edge |
StyleGroupSet.getEdge(java.lang.String id)
Get an edge element knowing its identifier.
|
Edge |
GraphicGraph.getEdge(java.lang.String id) |
Edge |
GraphicNode.getEdgeBetween(int index) |
Edge |
GraphicNode.getEdgeBetween(Node Node) |
Edge |
GraphicNode.getEdgeBetween(java.lang.String id) |
Edge |
GraphicNode.getEdgeFrom(int index) |
Edge |
GraphicNode.getEdgeFrom(Node Node) |
Edge |
GraphicNode.getEdgeFrom(java.lang.String id) |
Edge |
GraphicNode.getEdgeToward(int index) |
Edge |
GraphicNode.getEdgeToward(Node Node) |
Edge |
GraphicNode.getEdgeToward(java.lang.String id) |
Edge |
GraphicNode.getEnteringEdge(int i) |
Edge |
GraphicNode.getLeavingEdge(int i) |
Edge |
GraphicGraph.removeEdge(Edge edge) |
Edge |
GraphicGraph.removeEdge(int index) |
Edge |
GraphicGraph.removeEdge(int fromIndex,
int toIndex) |
Edge |
GraphicGraph.removeEdge(Node node1,
Node node2) |
Edge |
GraphicGraph.removeEdge(java.lang.String id) |
Edge |
GraphicGraph.removeEdge(java.lang.String from,
java.lang.String to) |
Modifier and Type | Method and Description |
---|---|
EdgeFactory<? extends Edge> |
GraphicGraph.edgeFactory() |
java.util.stream.Stream<Edge> |
StyleGroupSet.edges() |
java.util.stream.Stream<Edge> |
GraphicGraph.edges() |
java.util.stream.Stream<Edge> |
GraphicNode.edges() |
java.util.Iterator<? extends Edge> |
StyleGroupSet.getEdgeIterator()
Iterator on the set of edges.
|
java.util.Iterator<Edge> |
GraphicNode.iterator() |
Modifier and Type | Method and Description |
---|---|
static double |
GraphPosLengthUtils.edgeLength(Edge edge)
Like
GraphPosLengthUtils.edgeLength(Graph,String) but use an existing edge as argument. |
StyleGroup |
StyleGroupSet.getStyleFor(Edge edge)
Get the style of a given edge.
|
Edge |
GraphicGraph.removeEdge(Edge edge) |
Modifier and Type | Method and Description |
---|---|
void |
GraphicGraph.setEdgeFactory(EdgeFactory<? extends Edge> ef) |