graph_tool.topology.shortest_distance -> consistency of returned types
Thank you for graph-tool.
I have two requests related to graph_tool.topology.shorteset_distance to reduce the need for type checking gotchas:
- The method returns a distance map, which is a property map in cases where no targets are provided but a numpy array in cases where targets are provided. Would it be possible to return the same type in both cases?
- In cases where the targets parameter is a single target, it returns a np.float type instead of an array. It would be nice if this was consistent with the array (or property map) types.
Thanks.