Skip to content

ccessl/create_gra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

canvas 绘制邻接矩阵

##无向图

#效果

查看

 var option={
        name:['v0','v1','v2','v3','v4','v5','v6'],
        data:[ [0,1,1,1,1,0,1],
                    [1,0,0,1,0,0,1],
                    [1,0,0,0,1,0,0],
                    [1,1,0,0,1,1,0],
                    [1,0,1,1,0,1,0],
                    [0,0,0,1,1,0,1],
                    [1,1,0,0,0,1,0]]
    };

可拖动调整节点位置

##无向图

var option={
        name:['v0','v1','v2','v3','v4','v5','v6'],
        data:[ [0,1,1,0,0,1,0],
                [0,0,0,1,0,0,0],
                [1,0,0,0,0,0,1],
                [0,0,0,0,0,1,0],
                [1,0,0,0,0,0,1],
                [0,0,0,0,1,0,0],
                [1,0,1,0,0,0,0]]
    };

About

canvas 绘制邻接矩阵

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages