Interface KPartiteGraph<V,E>
- All Superinterfaces:
Graph<V,E>, Hypergraph<V, E>
An interface for graphs whose vertices are each members of one of 2 or more
disjoint sets (partitions), and whose edges connect only vertices in distinct
partitions.
-
Method Summary
Modifier and TypeMethodDescriptionCollection<com.google.common.base.Predicate<V>> Returns the set ofPredicateinstances which define this graph's partitions.getVertices(com.google.common.base.Predicate<V> partition) Returns all vertices which satisfy the specifiedpartitionpredicate.Methods inherited from interface Graph
addEdge, addEdge, getDest, getEndpoints, getInEdges, getOpposite, getOutEdges, getPredecessorCount, getPredecessors, getSource, getSuccessorCount, getSuccessors, inDegree, isDest, isPredecessor, isSource, isSuccessor, outDegreeMethods inherited from interface Hypergraph
addEdge, addEdge, addVertex, containsEdge, containsVertex, degree, findEdge, findEdgeSet, getDefaultEdgeType, getEdgeCount, getEdgeCount, getEdges, getEdges, getEdgeType, getIncidentCount, getIncidentEdges, getIncidentVertices, getNeighborCount, getNeighbors, getVertexCount, getVertices, isIncident, isNeighbor, removeEdge, removeVertex
-
Method Details
-
getVertices
Returns all vertices which satisfy the specifiedpartitionpredicate.- Parameters:
partition-Predicatewhich defines a partition- Returns:
- all vertices satisfying
partition
-
getPartitions
Collection<com.google.common.base.Predicate<V>> getPartitions()Returns the set ofPredicateinstances which define this graph's partitions.- Returns:
- the set of
Predicateinstances which define this graph's partitions
-