dijkstra changed to return only cnnectd components

rescaling option yet to be incorporated.