Example #1
0
        private async void Init()
        {
            var labels = _node.GetLabels();
            var incomingRelationships = _node.GetRelationShips(Client.Direction.Incoming);
            var outgoingRelationships = _node.GetRelationShips(Client.Direction.Outgoing);

            IncomingRelationships = (await incomingRelationships).Select(r => new Relationship_ViewModel(r)).ToList();
            OutgoingRelationships = (await outgoingRelationships).Select(r => new Relationship_ViewModel(r)).ToList();
            var lbls = await labels;

            Labels = new ObservableCollection <string>(lbls);
            Id     = _node.Metadata.Id;
        }