Unexpected behaviour
I am not sure if the following is a bug or a feature:
from graph_tool.all import *
g = Graph()
g.add_edge(0,1)
g.add_edge(3,4)
adds vertex with index 2 additionally to the ones that are specified.
Please use the issue tracker only to report bugs (i.e. errors in the library that need to be fixed) or feature requests.
Please check if the current git version also has the same problem. An easy way to do this is to use google colab!
For questions about how to compile, install or use the library, please use instead the web forum at https://forum.skewed.de/c/graph-tool.
(If unsure, use the forum first.)
IMPORTANT: When opening new issues, please choose the BUG template from the drop-down menu, and fill out the required information.
I am not sure if the following is a bug or a feature:
from graph_tool.all import *
g = Graph()
g.add_edge(0,1)
g.add_edge(3,4)
adds vertex with index 2 additionally to the ones that are specified.