Refactor network graph

I think that it is unreadable yet, but better readable than before.