⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 graphtype.cs

📁 英语句子自然语言处理统计分析例子 Statistical parsing of English sentences Shows how to generate parse trees for
💻 CS
字号:
using System;
using System.Xml;
using System.Xml.Serialization;
using System.IO;
namespace Netron.Lithium
{
	/// <summary>
	/// This is the root of the XML serialization class.
	/// It acts as a kind of proxy class between the XML and the actual GraphAbstract.
	/// </summary>
		[XmlType(IncludeInSchema=true, TypeName="graph.type")]
		[XmlRoot(ElementName="NetronLightGraph", IsNullable=false, DataType="")]
		public class GraphType 
		{
			#region Fields
			private GraphDataCollection nodes = new GraphDataCollection();
			private GraphDataCollection edges = new GraphDataCollection();
		
			private string description;
			private string id;
			#endregion

			#region Properties
			/// <summary>
			/// Gets or sets the description of the diagram
			/// </summary>
			[XmlElement(ElementName="Description")]
			public virtual string Description 
			{
				get 
				{
					return this.description;
				}
				set 
				{
					this.description = value;
				}
			}
        
        
        
			
			/// <summary>
			/// Gets or sets the node collection
			/// </summary>
			[XmlElement(ElementName="Node", Type=typeof(NodeType))]			
			public virtual GraphDataCollection Nodes 
			{
				get 
				{
					return this.nodes;
				}
				set 
				{
					this.nodes = value;
				}
			}

			/// <summary>
			/// Gets or sets the edge collection
			/// </summary>
			[XmlElement(ElementName="Edge", Type=typeof(EdgeType))]					
			public virtual GraphDataCollection Edges 
			{
				get 
				{
					return this.edges;
				}
				set 
				{
					this.edges = value;
				}
			}
        
        
        
			/// <summary>
			/// Gets or sets the id
			/// </summary>
			[XmlAttribute(AttributeName="id")]
			public virtual string ID 
			{
				get 
				{
					return this.id;
				}
				set 
				{
					this.id = value;
				}
			}
        
        
        
		
  
			#endregion
		}
	}


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -