V
- public class CountingTcRelation<V> extends java.lang.Object implements ITcRelation<V>
Modifier and Type | Method and Description |
---|---|
boolean |
addTuple(V source,
V target,
int count)
Returns true if the tc relation did not contain previously such a tuple that is defined by (source,target), false
otherwise (in this case count is incremented with the given count parameter).
|
boolean |
containsTuple(V source,
V target)
Returns true if a (source, target) node is present in the transitive closure relation, false otherwise.
|
static <V> CountingTcRelation<V> |
createFrom(IBiDirectionalGraphDataSource<V> gds) |
void |
deleteTupleEnd(V tupleEnd) |
boolean |
equals(java.lang.Object obj) |
int |
getCount(V source,
V target) |
java.util.Set<V> |
getTupleEnds(V source)
Returns the set of nodes that are reachable from the given node.
|
java.util.Set<V> |
getTupleStarts()
Returns the starting nodes from a transitive closure relation.
|
java.util.Set<V> |
getTupleStarts(V target)
Returns the set of nodes from which the target node is reachable.
|
int |
hashCode() |
java.lang.String |
toString() |
public boolean addTuple(V source, V target, int count)
source
- the source of the tupletarget
- the target of the tuplecount
- the count of the tuplepublic void deleteTupleEnd(V tupleEnd)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<V> getTupleEnds(V source)
ITcRelation
getTupleEnds
in interface ITcRelation<V>
source
- the starting nodepublic java.util.Set<V> getTupleStarts(V target)
target
- the target nodepublic java.util.Set<V> getTupleStarts()
ITcRelation
getTupleStarts
in interface ITcRelation<V>
public boolean containsTuple(V source, V target)
source
- the source nodetarget
- the target nodepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static <V> CountingTcRelation<V> createFrom(IBiDirectionalGraphDataSource<V> gds)