31 lines
756 B
C#
31 lines
756 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AutoGroupGenerator
|
|
{
|
|
/// <summary>
|
|
/// Represents a subset of a larger <see cref="DependencyGraph"/> instance.
|
|
/// </summary>
|
|
[Serializable]
|
|
public class Subgraph
|
|
{
|
|
|
|
#region Fields
|
|
/// <summary>
|
|
/// Nodes contained in this subgraph.
|
|
/// </summary>
|
|
public HashSet<AssetNode> Nodes = new HashSet<AssetNode>();
|
|
|
|
/// <summary>
|
|
/// Source nodes that lead into this subgraph.
|
|
/// </summary>
|
|
public HashSet<AssetNode> Sources = new HashSet<AssetNode>();
|
|
|
|
/// <summary>
|
|
/// Hash representing the sources set.
|
|
/// </summary>
|
|
public int HashOfSources;
|
|
#endregion
|
|
}
|
|
}
|