|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
G
- Type of the graphsV
- Type of the nodesE
- Type of the edgespublic interface CentiLibInteractions<G,V,E>
This Interface is used to get informations from and interact with unknown data structures that work with graphs. For example, it is used by the CentiLib GUI to access the data structures of the tool it is integrated into.
Method Summary | |
---|---|
boolean |
addCentralityAttribute(V node,
String centName,
Double value)
Adds the attribute centName to node and sets the value 'value' |
G |
createSubGraph(G graph,
Set<V> nodes,
Set<E> edges,
String name)
Creates a subgraph of 'graph' that contains the given nodes and edges. |
void |
deleteCentralityAttribute(V node,
String centName)
Deletes the attribute centName from node if it exists |
G |
getCurrentGraph()
Returns the currently selected graph. |
Set<G> |
getGraphs()
Returns all available graphs |
Set<DoubleAttribute<E>> |
getNumericEdgeAttributes(G graph)
Returns a set of edge attributes for graph that contain numbers or double values respectively |
Set<DoubleAttribute<V>> |
getNumericNodeAttributes(G graph)
Returns a set of node attributes for graph that contain numbers or double values respectively |
Graph<V,E> |
getWrapper(G graph)
Returns an instance that wraps graph to fit the Interface 'Graph |
void |
selectGraph(G graph)
Sets 'graph' as current graph and brings the corresponding view into focus (if one exists) |
void |
selectNodesOfCurrentGraph(Set<V> nodes)
Selects all nodes in the currently selected graph view which are contained in the set 'nodes'. |
Method Detail |
---|
Set<DoubleAttribute<E>> getNumericEdgeAttributes(G graph)
graph
- The graph whose edge attributes shall be returned
Set<DoubleAttribute<V>> getNumericNodeAttributes(G graph)
graph
- The graph whose node attributes shall be returned
Set<G> getGraphs()
G getCurrentGraph()
Graph<V,E> getWrapper(G graph)
graph
- the graph to be wrapped
void selectNodesOfCurrentGraph(Set<V> nodes)
nodes
- The nodes to select.void selectGraph(G graph)
graph
- The graph to select.boolean addCentralityAttribute(V node, String centName, Double value)
node
- the node to add the attribute tocentName
- the name of the attribute (centrality)value
- the value of the added attribute
void deleteCentralityAttribute(V node, String centName)
node
- the node to delete the attribute fromcentName
- the name of the attributeG createSubGraph(G graph, Set<V> nodes, Set<E> edges, String name)
graph
- original graphnodes
- set of nodes of the original graph which are to be copied to the subgraphedges
- set of edges of the original graph which are to be copied to the subgraphname
- the name of the subgraph
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |