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 type
E - the edge type, must extend DefaultWeightedEdge
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

    Constructors
    Constructor
    Description
    SNTPseudograph(Class<? extends E> edgeClass)
    Constructs a new SNTPseudograph with edges of the specified class.
  • Method Summary

    Methods 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, vertexSet

    Methods inherited from class org.jgrapht.graph.AbstractGraph

    assertVertexExist, containsEdge, equals, hashCode, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSets

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.jgrapht.Graph

    containsEdge, removeAllEdges, removeAllEdges, removeAllVertices, setEdgeWeight
  • Constructor Details

    • SNTPseudograph

      public SNTPseudograph(Class<? extends E> edgeClass)
      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