public interface PartialGraph<Id,Node> extends IdGraph<Id>, Set<Node>
Modifier and Type | Method and Description |
---|---|
boolean |
add(Node e)
Deprecated.
|
boolean |
addAll(Collection<? extends Node> c)
Deprecated.
|
void |
clear()
Deprecated.
|
boolean |
containsNodeForId(Id id)
Whether a node is associated with this id.
|
Id |
getId(Node node)
Getting the id associated with a node.
|
Node |
getNode(Id id)
Getting the node associated with an id.
|
com.google.common.collect.ImmutableBiMap<Id,Node> |
id__node()
The mapping between id and node.
|
IdGraph<Id> |
idGraph()
The internal id graph.
|
com.google.common.collect.ImmutableSet<Node> |
nodeSet()
An ImmutableSet of nodes (note that Graph also implements Set<Node>).
|
int |
nodeSize()
The size of the node set, will be small than idSize() in partial graphs.
|
boolean |
remove(Object o)
Deprecated.
|
boolean |
removeAll(Collection<?> c)
Deprecated.
|
boolean |
retainAll(Collection<?> c)
Deprecated.
|
Iterable<Node> |
transformIterable(Iterable<Id> idIterable,
boolean skipMissingNodes)
Converting an id iterable to a node iterable.
|
Iterator<Node> |
transformIterator(Iterator<Id> idIterator,
boolean skipMissingNodes)
Converting an id iterator to a node iterator.
|
com.google.common.collect.ImmutableList<Node> |
transformList(Iterable<Id> ids,
boolean skipMissingNodes)
Converting ids to a node list.
|
com.google.common.base.Optional<Node> |
transformOptional(com.google.common.base.Optional<Id> id,
boolean skipMissingNode)
Converting optional id to an optional node.
|
com.google.common.collect.ImmutableSet<Node> |
transformSet(Iterable<Id> ids,
boolean skipMissingNodes)
Converting ids to a node set.
|
com.google.common.collect.ImmutableSet<Id> |
unboundIdSet()
The ids in the idGraph which don't have associated nodes in id__node.
|
ancestorIdGraph, ancestorIdGraph, ancestorIdIterable, ancestorIdIterable, ancestorIdSet, ancestorIdSet, assertIdsEqual, assertIdsEqual, childIdSet, containsCycle, descendantIdGraph, descendantIdGraph, descendantIdIterable, descendantIdIterable, descendantIdSet, descendantIdSet, filterIdGraph, id__childIds, id__parentIds, idSet, idSize, isAncestorOf, isChildOf, isDescendantOf, isLeaf, isParentOf, isRoot, leafIdSet, optionalTopsortIdList, parentIdSet, rootIdSet, traverseIdIterable, traverseIdIterable, traverseIdList, traverseIdList
com.google.common.collect.ImmutableSet<Node> nodeSet()
int nodeSize()
com.google.common.collect.ImmutableBiMap<Id,Node> id__node()
boolean containsNodeForId(Id id)
Node getNode(Id id) throws NotContained
NotContained
com.google.common.collect.ImmutableSet<Id> unboundIdSet()
com.google.common.collect.ImmutableSet<Node> transformSet(Iterable<Id> ids, boolean skipMissingNodes)
com.google.common.collect.ImmutableList<Node> transformList(Iterable<Id> ids, boolean skipMissingNodes)
com.google.common.base.Optional<Node> transformOptional(com.google.common.base.Optional<Id> id, boolean skipMissingNode)
Iterable<Node> transformIterable(Iterable<Id> idIterable, boolean skipMissingNodes)
Iterator<Node> transformIterator(Iterator<Id> idIterator, boolean skipMissingNodes)
@Deprecated boolean add(Node e)
@Deprecated boolean remove(Object o)
@Deprecated boolean addAll(Collection<? extends Node> c)
@Deprecated boolean retainAll(Collection<?> c)
@Deprecated boolean removeAll(Collection<?> c)
@Deprecated void clear()
Copyright © 2014. All rights reserved.