Overview     Modules     Class Hierarchy     Classes     Members  

ExtendedClusterOperation.h File Reference

#include <set>
#include <string>
#include <tulip/Node.h>
#include <tulip/Graph.h>
#include <tulip/GraphProperty.h>

Include dependency graph for ExtendedClusterOperation.h:

This graph shows which files directly or indirectly include this file:

Namespaces

  • namespace tlp

Functions

  • TLP_SCOPE void openMetaNode (Graph *graph, node metaNode, Graph *groupUnderSubGraph, GraphProperty *metaGraphProperty)
  • TLP_SCOPE void openMetaNode (Graph *graph, node n)
  • TLP_SCOPE node createMetaNode (Graph *graph, std::set< node > &subGraph, Graph *groupUnderSubGraph, GraphProperty *metaInfo)
  • TLP_SCOPE node createMetaNode (Graph *graph, std::set< node > &subGraph)
  • TLP_SCOPE Graph * inducedSubGraph (Graph *, const std::set< node > &, std::string name="induced subgraph")
  • TLP_SCOPE void updateGroupLayout (Graph *graph, Graph *cluster, node metanode)

Function Documentation

TLP_SCOPE node tlp::createMetaNode Graph *  graph,
std::set< node > &  subGraph
 

Function to close a subgraph into a metanode. Edges from nodes in the subgraph to nodes outside the subgraph are replaced with edges from the metanode to the nodes outside the subgraph. Version for backwards compatibility with groupUnderSubGraph set to graph->getSuperGraph(), multiEdges set to true, metaInfo set to viewMetaGraph, and delAllEdge set to true.

TLP_SCOPE node tlp::createMetaNode Graph *  graph,
std::set< node > &  subGraph,
Graph *  groupUnderSubGraph,
GraphProperty *  metaInfo
 

Function to close a subgraph into a metanode. Edges from nodes in the subgraph to nodes outside the subgraph are replaced with edges from the metanode to the nodes outside the subgraph.

Parameters:
graph The graph where the meta node will be placed.
subGraph The set of nodes to be contracted into a metanode.
groupUnderSubgraph The subgraph where the groups are placed.
metaGraphProperty The metagraph property used to associate the subgraph to the new metanode.

TLP_SCOPE Graph* tlp::inducedSubGraph Graph *  ,
const std::set< node > &  ,
std::string  name = "induced subgraph"
 

Return a subgraph induced by a set of nodes

TLP_SCOPE void tlp::openMetaNode Graph *  graph,
node  n
 

Function to open a metanode and replace all edges between that meta node and other nodes in the graph. Provided for backwards compatability with groupUnderSubGraph set to graph->getSuperGraph(), and metaGraphs set to viewMetaGraph.

TLP_SCOPE void tlp::openMetaNode Graph *  graph,
node  metaNode,
Graph *  groupUnderSubGraph,
GraphProperty *  metaGraphProperty
 

Function to open a metanode and replace all edges between that meta node and other nodes in the graph.

Parameters:
graph The graph where the metanode is contained and where the subgraph will be replaced.
n The meta node to open.
groupUnderSubgraph The subgraph where the groups are placed
metaGraphProperty The metagraph property used to associate the subgraph to metanodes

TLP_SCOPE void tlp::updateGroupLayout Graph *  graph,
Graph *  cluster,
node  metanode
 

Update the layout of metanode in cluster according to the layout of underlying nodes in graph



Tulip Software by LaBRI Visualization Team    2001 - 2007