def single_source_dijkstra(G, source, target=None, cutoff=None, weight='weight'):
 return multi_source_dijkstra(G, {source}, cutoff=cutoff, target=target, weight=weight)

def single_source_dijkstra ( G , source , target = None , cutoff = None , weight = 'weight' ) : return multi_source_dijkstra ( G , { source } , cutoff = cutoff , target = target , weight = weight )
find shortest weighted paths and lengths from a source node .