Fix uninitialized nx and unused graphviz_layout