Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Node { public int node1; public int node2; }
- List<Node> nodes;
- void AddNode(Node node)
- {
- if (!nodes.Any(n => n.node1 == node.node1 && n.node2 == node.node2))
- {
- nodes.Add(node);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement