Added arc graph and bidirectional graph setting