CreateCompleGraph using Symbolic Math Toolbox
显示 更早的评论
I am working on Matlab 2012b. I have symbollic Math Toolbox. But when I try for
MuPAD Functions
Graph::createCircleGraph Generates a circle Graph Graph::createCompleteGraph Generates a complete graph Graph::createGraphFromMatrix Transfers a squared matrix into a directed graph Graph::createRandomEdgeWeights Sets random weights to edges Graph::createRandomEdgeCosts Sets random costs to edges Graph::createRandomGraph Generates a random graph. Graph::createRandomVertexWeights Sets random weights to vertices Graph::plotBipartiteGraph Plots a Graph in a bipartite layout Graph::plotCircleGraph Plots a Graph in a circle layout Graph::plotGridGraph Plots a Graph in a grid layout
Functions...It is not working.
Is there any other procedure to activate this functions ??
Please do let me know. I need graph theory for my research.
Thanks.
回答(2 个)
These functions should be only used in MuPad.
Please try typing MuPad in the Command Window. The MuPad notebook window would show up. You can try to use the code below:
G1 := Graph::createCircleGraph(4):
Graph::printGraphInformation(G1)
And type Enter, the results would like this:
Vertices: [1, 2, 3, 4]
Edges: [[1, 2], [2, 3], [3, 4], [4, 1]]
Vertex weights: no vertex weights.
Edge descriptions: no edge descriptions.
Edge weights: no edge weights.
Edge costs: no edge costs.
Adjacency list (out): 1 = [2], 2 = [3], 3 = [4], 4 = [1]
Adjacency list (in): 1 = [4], 2 = [1], 3 = [2], 4 = [3]
Graph is directed.
Sage Beard
2020-5-23
0 个投票
People create the graph using a symbolic math toolbox that looks able graph. Many students of the college learn to create this from is college-paper.org legit and give class to others to teach them.
类别
在 帮助中心 和 File Exchange 中查找有关 Common Operations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!