Gephi Toolkit Javadoc

org.gephi.graph.spi
Interface MetaEdgeBuilder


public interface MetaEdgeBuilder

Responsible for building meta edges weight and attributes from aggregated edges during the process of meta edge creation and deletion.

Meta-edges are build from aggregation of edges in lower levels in the hierarchy tree. This builder is responsible of setting the meta edge weight (and possibly attributes) when edges are added/removed from the meta edge.

The weight of the meta edge could for instance be the average or the sum of edges' weight. Define your own meta edge builder to control how the weight should be computed.

Set the builder by doing:

 GraphModel model = ...;
 model.settings().setMetaEdgeBuilder(builder);
 

Author:
Mathieu Bastian

Method Summary
 void pullEdge(Edge edge, Node source, Node target, MetaEdge metaEdge)
          Removes edge as a metaEdge member.
 void pushEdge(Edge edge, Node source, Node target, MetaEdge metaEdge)
          Adds edge as a metaEdge member.
 

Method Detail

pushEdge

void pushEdge(Edge edge,
              Node source,
              Node target,
              MetaEdge metaEdge)
Adds edge as a metaEdge member.

Parameters:
edge - the edge added as a member
source - the edge's source, in the view
target - the edge's target, in the view
metaEdge - the meta edge to build

pullEdge

void pullEdge(Edge edge,
              Node source,
              Node target,
              MetaEdge metaEdge)
Removes edge as a metaEdge member.

Parameters:
edge - the edge removed from metaEdge's members
source - the edge's source, in the view
target - the edge's target, in the view
metaEdge - the meta edge to build

Gephi Toolkit Javadoc