Show / Hide Table of Contents

Class TypedAdjacencyMatrix

Provides a list of nodes and edges that connect those nodes to form a graph of a set of IVersionable items. In addition to each node's identifier, each node indicates its item type.

Inheritance
System.Object
TypedAdjacencyMatrix
Namespace: Algenta.Colectica.Model.Repository
Assembly: Algenta.Colectica.Model.dll
Syntax
public class TypedAdjacencyMatrix : object

Properties

Edges

Gets the edges of the graph.

Declaration
public Collection<TypedRelationship> Edges { get; }
Property Value
Type Description
Collection<TypedRelationship>

Predicate

Gets or sets the relationship predicate to be followed to form the set. See RelationshipPredicates.

Declaration
public Guid Predicate { get; set; }
Property Value
Type Description
Guid

ReverseTraversal

Gets or sets a value indicating whether the set is defined as all items under the root items, or all items that contain the target item in their set.

Declaration
public bool ReverseTraversal { get; set; }
Property Value
Type Description
System.Boolean

Roots

Gets the identifiers of the root items that define the set.

Declaration
public Collection<IdentifierTriple> Roots { get; }
Property Value
Type Description
Collection<IdentifierTriple>

Methods

GetSet(IdentifierTriple)

Gets the set of all items.

Declaration
public HashSet<TypedIdTriple> GetSet(IdentifierTriple root)
Parameters
Type Name Description
IdentifierTriple root

The root.

Returns
Type Description
HashSet<TypedIdTriple>

GetSetList(IdentifierTriple)

Gets a list of identifiers of all items in the set.

Declaration
public Collection<TypedIdTriple> GetSetList(IdentifierTriple root)
Parameters
Type Name Description
IdentifierTriple root

The root of the set.

Returns
Type Description
Collection<TypedIdTriple>

A list of all items in the set.

Extension Methods

Extensions.Yield<T>(T)
Back to top Copyright © 2009-2018 Colectica