Initial setup for graph algorithms