public bool IsTerminal(string source) { if (Vertices.ContainsKey(source)) { return Vertices[source].IsTerminal; } return false; }