public VoltageScorer(Hypergraph<V,E> g,V source,V sink){
  this(g,Collections.singletonMap(source,1.0),Collections.singletonList(sink));
  initialize();
}

public VoltageScorer ( Hypergraph < V , E > g , V source , V sink ) { this ( g , Collections . singletonMap ( source , 1.0 ) , Collections . singletonList ( sink ) ) ; initialize ( ) ; }
creates an instance with the specified graph , edge weights , source , and sink . the source vertex voltage is tied to 1 . the outgoing edges for each vertex are assigned weights that sum to 1 .
