Package science.aist.gtf.graph.builder
Interface EdgeWithBuilder<V,E>
-
- Type Parameters:
V
- the type of the decorated vertex valueE
- the type of the decorated edge value
public interface EdgeWithBuilder<V,E>
EdgeWithBuilder that is used inside
EdgeBuilder
andEdgeDataBuilder
and allows to add a callback method, that is called with the created edge. This allows to e.g. addMetaTag
s.- Since:
- 1.0
- Author:
- Andreas Pointner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GraphBuilder<V,E>
with(Consumer<Edge<V,E>> callback)
Add a callback method, that is executed when the edge is created.
-
-
-
Method Detail
-
with
GraphBuilder<V,E> with(Consumer<Edge<V,E>> callback)
Add a callback method, that is executed when the edge is created. This method allows performing different action on the created edge. E.g. change the initial weight or addMetaTag
s- Parameters:
callback
- the callback method for the edge- Returns:
- the original
GraphBuilder
-
-