Resolved PEP8 related warnings in subgraph