public interface Relation<R,C> extends Iterable<Pair<R,C>>, PartialComparable<Relation<R,C>>, Cloneable
Modifier and Type | Interface and Description |
---|---|
static class |
Relation.NoHomogenRelationException |
Modifier and Type | Method and Description |
---|---|
boolean |
add(R row,
C col) |
boolean |
addAll(Relation<? extends R,? extends C> r) |
boolean |
addAllFast(Relation<?,?> r) |
boolean |
addFast(Object o1,
Object o2) |
MatrixRelation<R,C> |
clone() |
Set<R> |
col(Object o) |
Set<R> |
colAnd(Collection<?> c) |
Set<R> |
colAnd(Object... o) |
SetList<C> |
colHeads() |
boolean |
contains(Object o1,
Object o2) |
boolean |
containsAll(Relation<?,?> r) |
default double |
density() |
void |
dispose() |
void |
empty() |
SetList<Set<R>> |
equivalenceClasses() |
void |
fill() |
Relation<R,C> |
filter(com.google.common.base.Predicate<? super R> rowPredicate,
com.google.common.base.Predicate<? super C> colPredicate,
com.google.common.base.Predicate<Pair<R,C>> relationPredicate) |
boolean |
isEmpty() |
boolean |
isFull() |
boolean |
isHomogen() |
MatrixRelation<R,R> |
neighborhood() |
MatrixRelation<R,R> |
order() |
boolean |
remove(Object o1,
Object o2) |
boolean |
removeAll(Relation<?,?> r) |
boolean |
retainAll(Relation<?,?> r) |
Set<C> |
row(Object o) |
Set<C> |
rowAnd(Collection<?> c) |
Set<C> |
rowAnd(Object... o) |
SetList<R> |
rowHeads() |
int |
size() |
Relation<R,C> |
subRelation(Collection<?> rowHeads,
Collection<?> colHeads) |
boolean[][] |
toArray() |
forEach, iterator, spliterator
equivalent, greater, greaterEq, smaller, smallerEq, uncomparable
compareTo
boolean addAllFast(Relation<?,?> r)
boolean containsAll(Relation<?,?> r)
Set<C> rowAnd(Collection<?> c)
Set<R> colAnd(Collection<?> c)
Relation<R,C> subRelation(Collection<?> rowHeads, Collection<?> colHeads)
Relation<R,C> filter(com.google.common.base.Predicate<? super R> rowPredicate, com.google.common.base.Predicate<? super C> colPredicate, com.google.common.base.Predicate<Pair<R,C>> relationPredicate)
int size()
default double density()
boolean isEmpty()
boolean isFull()
void empty()
void fill()
void dispose()
MatrixRelation<R,C> clone()
boolean[][] toArray()
boolean isHomogen()
MatrixRelation<R,R> neighborhood() throws Relation.NoHomogenRelationException
MatrixRelation<R,R> order() throws Relation.NoHomogenRelationException
SetList<Set<R>> equivalenceClasses() throws Relation.NoHomogenRelationException
Copyright © 2010–2023 Francesco Kriegel. All rights reserved.