-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
Based on our discussion today it seems like it might be helpful to have a function of the form:
def contractEdges(
ePred: EdgeTriplet[VD,ED] => Boolean,
contractFun: EdgeTriplet[VD,ED] => VD,
mergeFun: (VD, VD) => VD): Graph[VD, ED]where the user defined edge predicate ePred determines which edges to contract and the user defined contractFun renders a new vertex for the contracted edge and mergeFun merges multiple vertices that have been contracted together.