I\'m attempting to optimize some code around several bidirectional graphs. The graphs represent different aspects of a relationship between individuals, such as a running ta