Package sc.fiji.snt.analysis.graph
Class SNTPseudograph<V,E extends org.jgrapht.graph.DefaultWeightedEdge>
java.lang.Object
org.jgrapht.graph.AbstractGraph<V,E>
org.jgrapht.graph.AbstractBaseGraph<V,E>
sc.fiji.snt.analysis.graph.SNTGraph<V,E>
sc.fiji.snt.analysis.graph.SNTPseudograph<V,E>
- Type Parameters:
V- the vertex typeE- the edge type, must extendDefaultWeightedEdge
- All Implemented Interfaces:
Serializable,Cloneable,org.jgrapht.Graph<V,E>
public class SNTPseudograph<V,E extends org.jgrapht.graph.DefaultWeightedEdge>
extends SNTGraph<V,E>
A specialized implementation of
SNTGraph that represents a directed pseudograph
with weighted edges. A pseudograph is a graph type that allows:
- Multiple edges between the same pair of vertices (parallel edges)
- Self-loops (edges from a vertex to itself)
- Weighted edges
- Directed edges
- Cycles in the graph
Like its parent class SNTGraph, this implementation supports vertex/edge coloring
and vertex value mapping.
- See Also:
-
Field Summary
Fields inherited from interface org.jgrapht.Graph
DEFAULT_EDGE_WEIGHT -
Constructor Summary
ConstructorsConstructorDescriptionSNTPseudograph(Class<? extends E> edgeClass) Constructs a new SNTPseudograph with edges of the specified class. -
Method Summary
Methods inherited from class sc.fiji.snt.analysis.graph.SNTGraph
applyEdges, applyVertices, filterEdges, filterVertices, getEdgeColor, getEdgeColorRGBMap, getVertexColor, getVertexColorRGBMap, getVertexValue, getVertexValueMap, setEdgeColor, setVertexColor, setVertexValueMethods inherited from class org.jgrapht.graph.AbstractBaseGraph
addEdge, addEdge, addVertex, addVertex, clone, containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeSource, getEdgeSupplier, getEdgeTarget, getEdgeWeight, getType, getVertexSupplier, incomingEdgesOf, inDegreeOf, iterables, outDegreeOf, outgoingEdgesOf, removeEdge, removeEdge, removeVertex, setEdgeSupplier, setEdgeWeight, setVertexSupplier, vertexSetMethods inherited from class org.jgrapht.graph.AbstractGraph
assertVertexExist, containsEdge, equals, hashCode, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSetsMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jgrapht.Graph
containsEdge, removeAllEdges, removeAllEdges, removeAllVertices, setEdgeWeight
-
Constructor Details
-
SNTPseudograph
Constructs a new SNTPseudograph with edges of the specified class. The graph is initialized with the following properties:- Directed edges
- Multiple edges allowed between vertices
- Self-loops allowed
- Cycles allowed
- Weighted edges
- Modifiable structure
- Parameters:
edgeClass- the class of edges to be used in this graph- Throws:
IllegalArgumentException- if the edge class cannot be instantiated
-