public class OptimizedDirectedMultigraph<V>
extends org.jgrapht.graph.SimpleDirectedWeightedGraph<V,org.jgrapht.graph.DefaultWeightedEdge>
Title: Optimized Directed Multigraph
Description: A directed multigraph where the edge's multiplicity is implemented as the weight of the edge as opposed to many instances of edges - has better performances under graph traversal and connectivity algorithms.
Copyright: Copyright (c) 2008
Company: Clark & Parsia, LLC.
| Constructor and Description |
|---|
OptimizedDirectedMultigraph() |
| Modifier and Type | Method and Description |
|---|---|
org.jgrapht.graph.DefaultWeightedEdge |
addEdge(V sourceVertex,
V targetVertex) |
org.jgrapht.graph.DefaultWeightedEdge |
addEdge(V sourceVertex,
V targetVertex,
int multiplicity) |
int |
getEdgeMultiplicity(org.jgrapht.graph.DefaultWeightedEdge edge) |
createBuilder, createBuilderaddEdge, addVertex, addVertex, clone, containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeSource, getEdgeSupplier, getEdgeTarget, getEdgeWeight, getType, getVertexSupplier, incomingEdgesOf, inDegreeOf, outDegreeOf, outgoingEdgesOf, removeEdge, removeEdge, removeVertex, setEdgeSupplier, setEdgeWeight, setVertexSupplier, vertexSetassertVertexExist, containsEdge, equals, hashCode, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSetspublic org.jgrapht.graph.DefaultWeightedEdge addEdge(V sourceVertex, V targetVertex, int multiplicity)
public int getEdgeMultiplicity(org.jgrapht.graph.DefaultWeightedEdge edge)
Copyright © 2019. All rights reserved.