private static double getEdgeFragmentCost(Node node, Arborescence<Node> arborescence,
                                              Map<Node, Map<Node, Fragment>> edgeToFragment) {

        Fragment fragment = getEdgeFragment(node, arborescence, edgeToFragment);
        if (fragment != null) return fragment.fragmentCost();

        return 0D;
    }
private static double getEdgeFragmentCost ( Node node , Arborescence < Node > arborescence , Map < Node , Map < Node , Fragment > > edgeToFragment ) { Fragment fragment = getEdgeFragment ( node , arborescence , edgeToFragment ) ; if ( fragment != null ) return fragment . fragmentCost ( ) ; return 0D ; }
get edge fragment cost in order to map branch cost