public static class DefaultRNView.RNFactory extends GraphFactory<Vertex,RNEdge>
Constructor and Description |
---|
DefaultRNView.RNFactory() |
Modifier and Type | Method and Description |
---|---|
RNEdge |
createEdge(Vertex predecessor,
Vertex successor)
Creates a new edge with a weight of zero.
|
RNEdge |
createEdge(Vertex predecessor,
Vertex successor,
boolean directed)
Creates a new edge.
|
RNEdge |
createEdge(Vertex predecessor,
Vertex successor,
boolean directed,
float weight)
Creates a new edge.
|
RNEdge |
createEdge(Vertex predecessor,
Vertex successor,
float weight)
Creates a new edge.
|
Vertex |
createVertex(java.lang.String caption)
Creates a new vertex.
|
public Vertex createVertex(java.lang.String caption) throws java.lang.IllegalArgumentException
GraphFactory
null
. Otherwise
no vertices can be created!createVertex
in class GraphFactory<Vertex,RNEdge>
caption
- the default caption (that is an unique index value for the current graph)java.lang.IllegalArgumentException
- public RNEdge createEdge(Vertex predecessor, Vertex successor) throws java.lang.IllegalArgumentException
GraphFactory
null
. Otherwise
no edges can be created!createEdge
in class GraphFactory<Vertex,RNEdge>
predecessor
- the predecessor of the edgesuccessor
- the successor of the edgejava.lang.IllegalArgumentException
- public RNEdge createEdge(Vertex predecessor, Vertex successor, boolean directed) throws java.lang.IllegalArgumentException
GraphFactory
null
. Otherwise
no edges can be created!createEdge
in class GraphFactory<Vertex,RNEdge>
predecessor
- the predecessor of the edgesuccessor
- the successor of the edgedirected
- flag that indicates whether the edge should be directed (true
) or undirected (false
) (has only an effect in mixed graphs otherwise the type of the edge is predefined)java.lang.IllegalArgumentException
- public RNEdge createEdge(Vertex predecessor, Vertex successor, float weight) throws java.lang.IllegalArgumentException
GraphFactory
null
. Otherwise
no edges can be created!createEdge
in class GraphFactory<Vertex,RNEdge>
predecessor
- the predecessor of the edgesuccessor
- the successor of the edgeweight
- the weight of the edgejava.lang.IllegalArgumentException
- public RNEdge createEdge(Vertex predecessor, Vertex successor, boolean directed, float weight) throws java.lang.IllegalArgumentException
GraphFactory
null
. Otherwise
no edges can be created!createEdge
in class GraphFactory<Vertex,RNEdge>
predecessor
- the predecessor of the edgesuccessor
- the successor of the edgedirected
- flag that indicates whether the edge should be directed (true
) or undirected (false
) (has only an effect in mixed graphs otherwise the type of the edge is predefined)weight
- the weight of the edgejava.lang.IllegalArgumentException
-