Example #1
0
        public Participant AddParticipant(Participant Participant, UInt32 PersonMonths, Boolean WPLeader = false)
        {
            var edge = Graph.AddEdge(this.Vertex, "HasParticipant", Participant.Vertex).
                             SetProperty("PersonMonths", PersonMonths);

            if (WPLeader)
                edge.SetProperty("IsLeader", true);

            return Participant;
        }
Example #2
0
        public Participant AddParticipant(String ShortName, String LongName)
        {
            var Participant = new Participant(this.Vertex.OutDegree("HasParticipant") + 1,
                                              Name,
                                              Graph);

            Graph.AddEdge(this.Vertex, "HasParticipant", Participant.Vertex);

            return Participant;
        }
Example #3
0
        public Participant AddLeadingParticipant(Participant Participant, UInt32 PersonMonths)
        {
            Graph.AddEdge(this.Vertex, "HasParticipant", Participant.Vertex).
                  SetProperty("IsLeader", true).
                  SetProperty("PersonMonths", PersonMonths);

            return Participant;
        }