public class GSSingleGraphStreamSocialNetworkImpl<T> extends org.graphstream.graph.implementations.SingleGraph implements StreamSocialNetwork<T>
org.graphstream.graph.implementations.AdjacencyListGraph.EdgeIterator<T extends org.graphstream.graph.Edge>, org.graphstream.graph.implementations.AdjacencyListGraph.NodeIterator<T extends org.graphstream.graph.Node>
org.graphstream.graph.implementations.AbstractElement.AttributeChangeEvent
StreamSocialNetwork.Implementation, StreamSocialNetwork.Type
DEFAULT_EDGE_CAPACITY, DEFAULT_NODE_CAPACITY, edgeArray, edgeCount, edgeMap, GROW_FACTOR, nodeArray, nodeCount, nodeMap
attributes, attributesBeingRemoved, id
DEFAULT_NETWORK
Constructor and Description |
---|
GSSingleGraphStreamSocialNetworkImpl(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
addLink(SSNLink<T> link) |
void |
addResource(T resource) |
javax.swing.JComponent |
asComponent() |
void |
clear() |
StreamSocialNetwork.Implementation |
getImplementation() |
SSNLink<T> |
getLink(T from,
T to) |
java.util.Collection<SSNLink<T>> |
getLinks() |
java.util.Collection<SSNLink<T>> |
getLinks(boolean excludeZero) |
java.util.Collection<SSNLink<T>> |
getLinks(boolean excludeZero,
boolean excludeNegative) |
double |
getLinkValue(T from,
T to) |
void |
removeLink(SSNLink<T> link) |
void |
setLinkCount(SSNLink<T> link,
int count) |
void |
setLinkLabel(SSNLink<T> link,
java.lang.String label) |
void |
setLinkLabelStyle(SSNLink<T> link,
SSNEdgeLabelStyle style) |
void |
setLinkStyle(SSNLink<T> link,
SSNEdgeStyle... styles) |
void |
setLinkStyle(SSNLink<T> link,
SSNEdgeStyle style) |
void |
setLinkValue(SSNLink<T> link,
double value) |
void |
setLinkValueWithChange(SSNLink<T> link,
double value,
double change)
Deprecated.
|
void |
setNodeLabel(T node,
java.lang.String label) |
void |
setNodeStyle(T node,
SSNNodeStyle style) |
addEdgeCallback, addNodeCallback, clearCallback, getEdge, getEdge, getEdgeCount, getEdgeIterator, getNode, getNode, getNodeCount, getNodeIterator, removeEdgeCallback, removeNodeCallback
addAttributeSink, addEdge, addEdge, addEdge, addEdge, addEdge, addEdge, addEdge, addElementSink, addNode, addSink, attributeChanged, attributeSinks, clearAttributeSinks, clearElementSinks, clearSinks, display, display, edgeAdded, edgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, edgeFactory, edgeRemoved, elementSinks, getEachEdge, getEachNode, getEdgeSet, getNodeSet, getReplayController, getStep, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, graphCleared, isAutoCreationEnabled, isStrict, iterator, nodeAdded, nodeAttributeAdded, nodeAttributeChanged, nodeAttributeRemoved, nodeFactory, nodeRemoved, nullAttributesAreErrors, read, read, removeAttributeSink, removeEdge, removeEdge, removeEdge, removeEdge, removeEdge, removeEdge, removeEdge, removeElementSink, removeNode, removeNode, removeNode, removeNode, removeSink, setAutoCreate, setEdgeFactory, setNodeFactory, setNullAttributesAreErrors, setStrict, stepBegins, stepBegins, write, write
addAttribute, addAttributes, changeAttribute, clearAttributes, clearAttributesWithNoEvent, getArray, getAttribute, getAttribute, getAttributeCount, getAttributeKeyIterator, getAttributeKeySet, getEachAttributeKey, getFirstAttributeOf, getFirstAttributeOf, getHash, getId, getIndex, getLabel, getNumber, getVector, hasArray, hasAttribute, hasAttribute, hasHash, hasLabel, hasNumber, hasVector, removeAttribute, setAttribute, setIndex, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAttribute, addAttributes, changeAttribute, clearAttributes, getArray, getAttribute, getAttribute, getAttributeCount, getAttributeKeyIterator, getAttributeKeySet, getEachAttributeKey, getFirstAttributeOf, getFirstAttributeOf, getHash, getId, getIndex, getLabel, getNumber, getVector, hasArray, hasAttribute, hasAttribute, hasHash, hasLabel, hasNumber, hasVector, removeAttribute, setAttribute
public GSSingleGraphStreamSocialNetworkImpl(java.lang.String id)
public void addLink(SSNLink<T> link)
addLink
in interface StreamSocialNetwork<T>
public void addResource(T resource)
addResource
in interface StreamSocialNetwork<T>
public javax.swing.JComponent asComponent()
asComponent
in interface StreamSocialNetwork<T>
public void clear()
clear
in interface org.graphstream.graph.Graph
clear
in interface StreamSocialNetwork<T>
clear
in class org.graphstream.graph.implementations.AbstractGraph
public StreamSocialNetwork.Implementation getImplementation()
getImplementation
in interface StreamSocialNetwork<T>
public SSNLink<T> getLink(T from, T to)
getLink
in interface StreamSocialNetwork<T>
public java.util.Collection<SSNLink<T>> getLinks()
getLinks
in interface StreamSocialNetwork<T>
public java.util.Collection<SSNLink<T>> getLinks(boolean excludeZero)
getLinks
in interface StreamSocialNetwork<T>
public java.util.Collection<SSNLink<T>> getLinks(boolean excludeZero, boolean excludeNegative)
getLinks
in interface StreamSocialNetwork<T>
public void removeLink(SSNLink<T> link)
removeLink
in interface StreamSocialNetwork<T>
public void setLinkLabel(SSNLink<T> link, java.lang.String label)
setLinkLabel
in interface StreamSocialNetwork<T>
public void setLinkStyle(SSNLink<T> link, SSNEdgeStyle style)
setLinkStyle
in interface StreamSocialNetwork<T>
public void setLinkStyle(SSNLink<T> link, SSNEdgeStyle... styles)
setLinkStyle
in interface StreamSocialNetwork<T>
public void setLinkValue(SSNLink<T> link, double value)
setLinkValue
in interface StreamSocialNetwork<T>
@Deprecated public void setLinkValueWithChange(SSNLink<T> link, double value, double change)
setLinkValueWithChange
in interface StreamSocialNetwork<T>
public void setNodeLabel(T node, java.lang.String label)
setNodeLabel
in interface StreamSocialNetwork<T>
public void setNodeStyle(T node, SSNNodeStyle style)
setNodeStyle
in interface StreamSocialNetwork<T>
public void setLinkLabelStyle(SSNLink<T> link, SSNEdgeLabelStyle style)
setLinkLabelStyle
in interface StreamSocialNetwork<T>