Calculate side and position only if in the actual graph, not in library. Fixes #33