public Graph < Node > dependenceGraph ( ) { Graph . Builder < Node > builder = new Graph . Builder <> ( ) ; archives ( ) . stream ( ) . map ( analyzer . results :: get ) . filter ( deps -> ! deps . dependencies ( ) . isEmpty ( ) ) . flatMap ( deps -> deps . dependencies ( ) . stream ( ) ) . forEach ( d -> addEdge ( builder , d ) ) ; return builder . build ( ) ; }
Returns a graph of dependences .