2 using System
.Collections
.Generic
;
6 namespace LivingGraphBase
10 private Node m_Source
;
11 private Node m_Target
;
14 /// default constructor
18 m_Source
= new Node();
19 m_Target
= new Node();
22 public Relation(Node source
, Node target
)
24 if (source
== null || target
== null)
26 throw new ArgumentException("source or target node is null");
33 /// Get or set the source node
37 get { return m_Source; }
38 set { m_Source = value; }
41 /// Get or set the target node
45 get { return m_Target; }
46 set { m_Target = value; }