maxNodeId

open override fun maxNodeId(): Int

When we initialize from another graph, the max node id is different from .size, because we will add nodes out of order, such that we need two method for each

Return

max node id (inclusive)