public class TObjectDoubleHashMapSocialNetworkImpl<T> extends java.lang.Object implements SocialNetwork<T>
SocialNetwork.Factory, SocialNetwork.Implementation
Constructor and Description |
---|
TObjectDoubleHashMapSocialNetworkImpl() |
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) |
public TObjectDoubleHashMapSocialNetworkImpl()
public void addArc(T from, T to, double value)
SocialNetwork
addArc
in interface SocialNetwork<T>
public void addVertex(T vertex)
addVertex
in interface SocialNetwork<T>
public void removeArc(T from, T to)
removeArc
in interface SocialNetwork<T>
public java.util.Collection<T> getVertices()
getVertices
in interface SocialNetwork<T>
public java.util.Collection<T> getInSet(T to)
getInSet
in interface SocialNetwork<T>
public java.util.Collection<T> getOutSet(T from)
getOutSet
in interface SocialNetwork<T>
public void clear()
clear
in interface SocialNetwork<T>
public double getArcValue(T from, T to)
getArcValue
in interface SocialNetwork<T>
public SocialNetwork<T> clone()
clone
in interface SocialNetwork<T>
clone
in class java.lang.Object
public boolean containsArc(T from, T to)
containsArc
in interface SocialNetwork<T>
public SocialNetwork.Implementation getImplementation()
getImplementation
in interface SocialNetwork<T>