V
- the graph vertex typeE
- the graph edge typepublic class UndirectedMaskSubgraph<V,E> extends MaskSubgraph<V,E> implements UndirectedGraph<V,E>
MaskSubgraph
of another graph.base, edgeMask, edges, vertexMask, vertices
Constructor and Description |
---|
UndirectedMaskSubgraph(UndirectedGraph<V,E> base,
MaskFunctor<V,E> mask)
Deprecated.
in favor of using lambdas
|
UndirectedMaskSubgraph(UndirectedGraph<V,E> base,
java.util.function.Predicate<V> vertexMask,
java.util.function.Predicate<E> edgeMask)
Create a new undirected
MaskSubgraph of another graph. |
Modifier and Type | Method and Description |
---|---|
int |
degreeOf(V vertex)
Returns the degree of the specified vertex.
|
addEdge, addEdge, addVertex, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, vertexSet
assertVertexExist, containsEdge, equals, hashCode, removeAllEdges, toString, toStringFromSets
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addEdge, addEdge, addVertex, containsEdge, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, vertexSet
@Deprecated public UndirectedMaskSubgraph(UndirectedGraph<V,E> base, MaskFunctor<V,E> mask)
MaskSubgraph
of another graph.base
- the base graphmask
- vertices and edges to exclude in the subgraph. If a vertex/edge is masked, it is
as if it is not in the subgraph.public UndirectedMaskSubgraph(UndirectedGraph<V,E> base, java.util.function.Predicate<V> vertexMask, java.util.function.Predicate<E> edgeMask)
MaskSubgraph
of another graph.base
- the base graphvertexMask
- vertices to exclude in the subgraph. If a vertex is masked, it is as if it
is not in the subgraph. Edges incident to the masked vertex are also masked.edgeMask
- edges to exclude in the subgraph. If an edge is masked, it is as if it is not
in the subgraph.public int degreeOf(V vertex)
degreeOf
in interface UndirectedGraph<V,E>
vertex
- vertex whose degree is to be calculated.Copyright © 2017. All rights reserved.