博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
21.无向图邻接表的邻接结点类
阅读量:4635 次
发布时间:2019-06-09

本文共 543 字,大约阅读时间需要 1 分钟。

namespace DSList
{
    //无向图邻接表的邻接结点类(Undirected Graph Adjacency List of Adjaceney Node)
    public class AdjListNode<T>
    {
        private int adjVex;
        private AdjListNode<T> next;
        private int weight;
 
        public int AdjVex
        {
            get
            {
                return adjVex;
            }
            set
            {
                adjVex = value;
            }
        }
 
        public AdjListNode<T> Next
        {
            get
            {
                return next;
            }
            set
            {
                next = value;
            }
        }
 
        public int Weight
        {
            get
            {
                return weight;
            }
            set
            {
                weight = value;
            }
        }
 
        public AdjListNode(int vex)
        {
            adjVex = vex;
            next = null;
            weight = 0;
        }
    }
}

转载于:https://www.cnblogs.com/xiaoniba1024/archive/2013/04/26/3044176.html

你可能感兴趣的文章
sprintf 和strcpy 的差别
查看>>
jQuery_第五章_jQuery事件和动画
查看>>
打表打表何谓打表?
查看>>
MPEG4与.mp4
查看>>
实验5
查看>>
成长轨迹44 【ACM算法之路 百炼poj.grids.cn】【字符串处理】【2799、2976、2975、2742】...
查看>>
git 下载 安装
查看>>
录制终端信息并回放
查看>>
JS中window.event事件使用详解
查看>>
ES6深入学习记录(一)class方法相关
查看>>
《BI项目笔记》用Excel2013连接和浏览OLAP多维数据集
查看>>
C语言对mysql数据库的操作
查看>>
SQL Server 数据库备份
查看>>
INNO SETUP 获得命令行参数
查看>>
http编程学习(C#)
查看>>
DNN 数据访问策略 (转)
查看>>
Sublime Text 自动换行
查看>>
poj2420A Star not a Tree?(模拟退火)
查看>>
Charles抓取https请求
查看>>
LAMP环境搭建
查看>>