Opened 12 years ago
Last modified 11 years ago
#5442 new Feature Requests
Create CSR graph from GraphViz file
Reported by: | Owned by: | Andrew Sutton | |
---|---|---|---|
Milestone: | To Be Determined | Component: | graph |
Version: | Boost 1.42.0 | Severity: | Problem |
Keywords: | compressed_sparse_row_graph, graphviz | Cc: |
Description
From the 3 graph classes available so far in the BGL (adjacency_list, adjacency_matrix and compressed_sparse_row_graph), CSR is the only one that cannot be created with read_graphviz, which requires a MutableGraph).
However, it will be great to have such a possibility, even by using a different function.
Note:
See TracTickets
for help on using tickets.
That would be a nice feature to have; I have started on it, but the implementation fails when internal property maps are put into the
dynamic_properties
object passed to the Graphviz reader. There does not appear to be a good way to fix that problem without changing (with a performance penalty) the way internal property maps are returned from a CSR graph. Although I commented out the test case, you should now be able to pass a CSR graph toread_graphviz
as long as you use something like avector_property_map
for properties rather than either internal properties oriterator_property_map
.