Graph Class

 

Represents a directed graph that consists of nodes and links.

Namespace:   Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)


[SerializableAttribute]
public class Graph : GraphObject, ISerializable

NameDescription
System_CAPS_pubmethodGraph()

Constructs a Graph object.

System_CAPS_protmethodGraph(SerializationInfo, StreamingContext)

Special constructor that is used for deserialization only.

NameDescription
System_CAPS_pubpropertyAllGroups

Every group in the graph regardless of visibility or nesting.

System_CAPS_pubpropertyAllSchemas

Returns a list of all unique known schemas.

System_CAPS_pubpropertyCategories

Returns all categories. Never returns null.(Inherited from GraphObject.)

System_CAPS_pubpropertyCategoryCount

Returns the number of categories in the object.(Inherited from GraphObject.)

System_CAPS_pubpropertySystem_CAPS_staticCommonPaths

A dictionary of the common paths that are replaced during serialization.

System_CAPS_pubpropertyDescriptiveCategoryLabel

Creates a delimited list of all category labels for this graph object.(Inherited from GraphObject.)

System_CAPS_pubpropertyDocumentSchema

The serialized document schema for the graph.(Overrides GraphObject.DocumentSchema.)

System_CAPS_pubpropertyGroups

Gets the collection of all top-level groups.

System_CAPS_pubpropertyIsGroup

Gets whether this object is IsGroup. It looks for the GraphProperties.StyleForGroup.(Inherited from GraphObject.)

System_CAPS_pubpropertyIsPseudo

Gets whether this object is Pseudo. It looks for the GraphProperties.IsPseudo.(Inherited from GraphObject.)

System_CAPS_pubpropertyItem[GraphProperty]

Property that gets or sets a property value.(Inherited from GraphObject.)

System_CAPS_pubpropertyLinks

Gets the collection of links.

System_CAPS_pubpropertyNodes

Gets the collection of nodes.

System_CAPS_pubpropertyOrphanNodes

Gets all nodes that are not children of any GraphGroup.

System_CAPS_pubpropertyOwner

Gets the Graph object that this object belongs to.(Inherited from GraphObject.)

System_CAPS_pubpropertyPaths

CommonPaths found by the serializer during load which we will also use during save.

System_CAPS_pubpropertyProperties

Property that returns an enumeration of all annotations. The order of the enumeration is random.(Inherited from GraphObject.)

System_CAPS_pubpropertyPropertyCount

Property that returns a number of all annotations.(Inherited from GraphObject.)

System_CAPS_pubpropertyPropertyKeys

Property that returns an enumeration of all annotation keys. The order of the enumeration is random.(Inherited from GraphObject.)

System_CAPS_pubpropertyPropertyValues

Property that returns an enumeration of all annotation values. The order of the enumeration is random.(Inherited from GraphObject.)

System_CAPS_pubpropertyStyles

Gets the collection of styles.

System_CAPS_pubpropertyVisibility

Helper property to get/set visibility property of a GraphObject.(Inherited from GraphObject.)

System_CAPS_pubpropertyVisibleLinks

Returns the visible links (link.IsVisible == true).

System_CAPS_pubpropertyVisibleNodes

Returns the visible nodes (node.IsVisible == true).

System_CAPS_pubpropertyVisibleOrphanNodes

Gets all visible nodes that are not children of any GraphGroup.

System_CAPS_pubpropertyVisibleTopLevelGroups

Returns the visible top-level groups (node.IsVisible == true).

NameDescription
System_CAPS_pubmethodAddCategory(GraphCategory)

Adds a category to the object.(Inherited from GraphObject.)

System_CAPS_pubmethodAddSchema(GraphSchema)

Adds a new schema to the Graph. As soon as it is added, it cannot be removed again as nodes or links might be using categories or properties from the schema.

System_CAPS_pubmethodAsNode()

Converts the GraphObject to a GraphNode. If this is a GraphGroup, the inner node is returned.

For types other than GraphNode/Group, null is returned.(Inherited from GraphObject.)

System_CAPS_pubmethodBeginUpdate(Object, String, UndoOption)

Starts a batch mode update on the Graph (which is more efficient). You must call the Complete() method on the returned GraphTransactionScope, otherwise your changes will be rolled back. The usual pattern is to use this in a using block so that if an exception is thrown the changes are automatically rolled back.

System_CAPS_pubmethodBeginUpdate(Object, String, UndoOption, Boolean)

Starts a batch mode update on the Graph (which is more efficient). You must call the Complete() method on the returned GraphTransactionScope, otherwise your changes will be rolled back. The usual pattern is to use this in a using block so that if an exception is thrown the changes are automatically rolled back.

System_CAPS_pubmethodClear()

System_CAPS_pubmethodClearCategories()

Remove all categories from this object.(Inherited from GraphObject.)

System_CAPS_pubmethodClearValue(GraphProperty)

Removes the value of the specified property.(Inherited from GraphObject.)

System_CAPS_pubmethodCopy()

Creates a copy of this graph.

System_CAPS_pubmethodCopyCategories(GraphObject)

Copies any new categories from the given object, keeping existing categories.(Inherited from GraphObject.)

System_CAPS_pubmethodCopyProperties(GraphObject)

Copies any new properties from the given object, keeping existing property values unchanged.(Inherited from GraphObject.)

System_CAPS_pubmethodCopySchemas(Graph)

Copies the schemas from the other graph.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticFindCommonAncestor(IEnumerable<GraphNode>)

Finds the common ancestor of all the nodes in the given collection.

System_CAPS_pubmethodFindGroup(GraphNode)

Returns the GraphGroup wrapper for the given "IsGroup" node.

System_CAPS_pubmethodSystem_CAPS_staticGetGroupDescendants(IEnumerable<GraphObject>)

Gets a flat list of all the descendant nodes of the given list of graph objects where some of those objects could be groups.

System_CAPS_pubmethodSystem_CAPS_staticGetGroupDescendants(IEnumerable<GraphObject>, Predicate<GraphGroup>, Predicate<GraphNode>)

Gets a flat list of all the descendant nodes of the given list of graph objects where some of those objects could be groups, filtered to include only the nodes and groups that match the given predicates.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetMetaObject(Expression)

(Inherited from GraphObject.)

System_CAPS_pubmethodGetObjectData(SerializationInfo, StreamingContext)

ISerializable implementation. Gets the data for the object. Serialize the graph into DGML.

System_CAPS_protmethodGetSchemaValue(GraphProperty)

Gets the schema-specific value of the property, if one exists.(Inherited from GraphObject.)

System_CAPS_pubmethodSystem_CAPS_staticGetSearchableObjects(Graph)

Gets a flat list of all the nodes in the graph that are visible, in top-down DFS group hierarchy order.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetValue(GraphProperty)

Gets the value of the specified annotation.(Inherited from GraphObject.)

System_CAPS_pubmethodGetValue(String)

Gets the value of the specified property.(Inherited from GraphObject.)

System_CAPS_pubmethodGetValue<T>(GraphProperty, T)

Gets the value of the specified annotation. If property is not set, we return the default value that the caller passed to this method.(Inherited from GraphObject.)

System_CAPS_pubmethodGetValue<T>(GraphProperty, Graph)

Gets the value of the specified property.(Inherited from GraphObject.)

System_CAPS_pubmethodGetValue<T>(GraphProperty, Graph, GraphCategory)

Gets the value of the specified property, and also returns the category that this property value was inherited from, if any.(Inherited from GraphObject.)

System_CAPS_pubmethodGetValueAsString(GraphProperty, CultureInfo)

Returns the given property as a string that uses the given culture.(Inherited from GraphObject.)

System_CAPS_pubmethodHasCategory(GraphCategory)

Returns true if the object has the given category.(Inherited from GraphObject.)

System_CAPS_pubmethodHasCategory(IEnumerable<GraphCategory>)

Returns true if the object has any of the given categories.(Inherited from GraphObject.)

System_CAPS_pubmethodHasCategory(String)

Returns true if the object has the given category.(Inherited from GraphObject.)

System_CAPS_pubmethodHasCategoryInSet(HashSet<GraphCategory>, GraphCategoryMatchOption)

Determines whether the given set of categories applies to this object.(Inherited from GraphObject.)

System_CAPS_pubmethodHasLocalValue(GraphProperty)

Returns true if the specified property exists on this object with no category inheritance check.(Inherited from GraphObject.)

System_CAPS_pubmethodHasValue(GraphProperty)

Returns true if the specified annotation exists.(Inherited from GraphObject.)

System_CAPS_pubmethodHasValue(String)

Find out whether the object has a value for the specified property.(Inherited from GraphObject.)

System_CAPS_pubmethodHideOrphans()

Hides orphan nodes. An orphan is a node that is not contained by a group.

System_CAPS_pubmethodImportLink(GraphLink)

Imports a Link together with its source and target nodes so that they belong to the graph also. Merges any node or link properties and categories necessary.

System_CAPS_pubmethodImportNode(GraphNode)

Imports a node into a graph, merging any categories and properties necessary.

System_CAPS_pubmethodImportStyle(GraphConditionalStyle)

Creates a copy of the given style that belongs to this graph.

System_CAPS_pubmethodImportSubset(GraphNode, Boolean, Int32)

Clones the given node and its properties and the given number of levels of links and all the nodes those links point to and imports all these new nodes and links into this graph. If levels is zero, no links are copied. If levels is 1, it copies one level of links and all the nodes they point to.

System_CAPS_pubmethodImportSubset(IEnumerable<GraphNode>, Boolean, Int32)

Clones all the nodes and the given number of levels of links away from those nodes.

System_CAPS_pubmethodSystem_CAPS_staticLoad(Stream, EventHandler<GraphDeserializationProgressEventArgs>, GraphSchema[])

Loads the graph object model from the given stream.

System_CAPS_pubmethodSystem_CAPS_staticLoad(Stream, GraphSchema[])

Loads the graph object model from the given stream.

System_CAPS_pubmethodSystem_CAPS_staticLoad(String, EventHandler<GraphDeserializationProgressEventArgs>, GraphSchema[])

Loads a new Graph object from the given file.

System_CAPS_pubmethodSystem_CAPS_staticLoad(String, GraphSchema[])

Loads a new Graph object from the given file.

System_CAPS_pubmethodSystem_CAPS_staticLoad(TextReader, EventHandler<GraphDeserializationProgressEventArgs>, GraphSchema[])

Loads the graph object model from the given TextReader.

System_CAPS_pubmethodSystem_CAPS_staticLoad(TextReader, GraphSchema[])

Loads the graph object model from the given TextReader.

System_CAPS_pubmethodSystem_CAPS_staticLoad(XDocument, EventHandler<GraphDeserializationProgressEventArgs>, GraphSchema[])

Loads the graph object model from the given XDocument.

System_CAPS_pubmethodSystem_CAPS_staticLoad(XDocument, GraphSchema[])

Loads the graph object model from the given XDocument.

System_CAPS_pubmethodSystem_CAPS_staticLoad(XmlReader, EventHandler<GraphDeserializationProgressEventArgs>, GraphSchema[])

Loads the graph object model from the given XmlReader.

System_CAPS_pubmethodSystem_CAPS_staticLoad(XmlReader, GraphSchema[])

Loads the graph object model from the given XmlReader.

System_CAPS_pubmethodLoadAndMerge(Stream, EventHandler<GraphDeserializationProgressEventArgs>, GraphSchema[])

Loads the graph object model from the given stream and merges it in to the graph.

System_CAPS_pubmethodLoadAndMerge(Stream, GraphSchema[])

Loads the graph object model from the given stream and merges it into the graph.

System_CAPS_pubmethodLoadAndMerge(String, EventHandler<GraphDeserializationProgressEventArgs>, GraphSchema[])

Loads the graph object model from the given file and merges it in to the graph.

System_CAPS_pubmethodLoadAndMerge(String, GraphSchema[])

Loads the graph object model from the given file and merges it in to the graph.

System_CAPS_pubmethodLoadAndMerge(XDocument, EventHandler<GraphDeserializationProgressEventArgs>, GraphSchema[])

Loads the graph object model from the given XDocument and merges it into the graph.

System_CAPS_pubmethodLoadAndMerge(XDocument, GraphSchema[])

Loads the graph object model from the given XDocument and merges it into the graph.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodMerge(Graph)

Merges all new nodes and links from the given graph into this graph.

System_CAPS_pubmethodMerge(IEnumerable<GraphConditionalStyle>)

Merges all the styles from the given list.

System_CAPS_pubmethodMerge(IEnumerable<GraphLink>)

Merges all of the links from the given link list into this graph.

System_CAPS_pubmethodMerge(IEnumerable<GraphNode>)

Merges all of the nodes from the given node list into this graph.

System_CAPS_pubmethodMerge(IEnumerable<GraphObject>)

Merges all new nodes and links from the given list of graph objects into this graph.

System_CAPS_protmethodOnCategoryChanged(GraphCategory, GraphCategoryChangeType)

(Inherited from GraphObject.)

System_CAPS_pubmethodOnPropertyChanged(GraphProperty)

Raises a PropertyChangd event for the given GraphProperty.(Inherited from GraphObject.)

System_CAPS_pubmethodOnPropertyChanged(String)

Raises a PropertyChangd event for the named property.(Inherited from GraphObject.)

System_CAPS_pubmethodSystem_CAPS_staticParse(String, EventHandler<GraphDeserializationProgressEventArgs>, GraphSchema[])

Loads a new Graph object from the given in-memory string that contains DGML markup.

System_CAPS_pubmethodSystem_CAPS_staticParse(String, GraphSchema[])

Loads a new Graph object from the given in-memory string that contains DGML markup.

System_CAPS_pubmethodParseSerializedNodeId(String)

Parses a serialized node ID into a fully expanded GraphNodeId.

System_CAPS_pubmethodRemoveCategory(GraphCategory)

Removes the category of this object.(Inherited from GraphObject.)

System_CAPS_pubmethodRenameNode(GraphNode, GraphNodeId)

Renames a Node in the Graph (clones to new Node and removed original).

System_CAPS_pubmethodRenameNode(GraphNodeId, GraphNodeId)

Renames a Node in the Graph (clones to new Node and removed original).

System_CAPS_pubmethodRenameNode(String, String)

Renames a Node in the Graph (clones to new Node and removed original).

System_CAPS_pubmethodSave(Stream, GraphSerializationSettings)

Save the graph to the output stream with the given settings.

System_CAPS_pubmethodSave(String, GraphSerializationSettings)

Saves the Graph the a file.

System_CAPS_pubmethodSave(XmlWriter, GraphSerializationSettings)

Saves the graph to the XmlWriter with the given settings.

System_CAPS_pubmethodSetValue(String, Object)

Adds an annotation, using the given key, type, and value.(Inherited from GraphObject.)

System_CAPS_pubmethodSetValue<T>(GraphProperty, T)

Sets the value of the given property. If the property already exists, its value is overwritten unless the annotation flags prevent otherwise.(Inherited from GraphObject.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodToXml()

Converts the graph to XML using the GraphSerializer.

System_CAPS_pubmethodToXml(Int32)

Converts the graph to XML using the GraphSerializer.

System_CAPS_protmethodWrapGraphObject(GraphObject)

Modifies the current graph object to share the same property and categories as the given graph object.

The wrapper and wrappee graph objects will always have identical sets of properties and categories.(Inherited from GraphObject.)

NameDescription
System_CAPS_pubeventBeginUndoableTransactionScope

Will be notified when an UndoableGraphTransactionScope is opened by the Graph.BeginUpdate method.

System_CAPS_pubeventCategoryChanged

(Inherited from GraphObject.)

System_CAPS_pubeventEndUndoableTransactionScope

Will be notified when the UndoableGraphTransactionScope opened by Graph.BeginUpdate is disposed.

System_CAPS_pubeventPropertyChanged

(Inherited from GraphObject.)

System_CAPS_pubeventUpdated

Event implementation for GraphUpdated.

System_CAPS_pubeventUpdating

Event implementation for BeforeUpdate. This is an event that can be listened on and cancel the changes to a graph.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: