T
- type of vertices in networkpublic interface SocialNetwork<T>
extends java.lang.Cloneable
Modifier and Type | Interface and Description |
---|---|
static class |
SocialNetwork.Factory |
static class |
SocialNetwork.Implementation |
Modifier and Type | Method and Description |
---|---|
void |
addArc(T from,
T to,
double value)
adds an arc (and possibly vertices if not present) to the network
|
void |
addVertex(T vertex) |
void |
clear() |
SocialNetwork<T> |
clone() |
boolean |
containsArc(T from,
T to) |
double |
getArcValue(T from,
T to) |
SocialNetwork.Implementation |
getImplementation() |
java.util.Collection<T> |
getInSet(T to) |
java.util.Collection<T> |
getOutSet(T from) |
java.util.Collection<T> |
getVertices() |
void |
removeArc(T from,
T to) |
void addArc(T from, T to, double value)
from
- to
- value
- void addVertex(T vertex)
void clear()
java.util.Collection<T> getVertices()
SocialNetwork<T> clone()
SocialNetwork.Implementation getImplementation()