Inheritance: GraphX.VertexBase
コード例 #1
0
        private FileVertex GetOrAddTargetById(string rid)
        {
            var target = _graph.Vertices.FirstOrDefault(v => v.Id == rid);

            if (target == null)
            {
                target = new FileVertex {
                    Id = rid
                };
                _graph.AddVertex(target);
            }
            return(target);
        }
コード例 #2
0
        private FileVertex GetOrAddTargetById(string rid)
        {
            var target = _graph.Vertices.FirstOrDefault(v => v.Id == rid);

            if (target == null)
            {
                target = new FileVertex { Id = rid };
                _graph.AddVertex(target);
            }
            return target;
        }