フィルターのクリア

CreateCompleGraph using Symbolic Math Toolbox

1 回表示 (過去 30 日間)
Kirti Patel
Kirti Patel 2013 年 3 月 22 日
回答済み: Sage Beard 2020 年 5 月 23 日
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 件)

Kechao
Kechao 2013 年 4 月 26 日
編集済み: Kechao 2013 年 4 月 26 日
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
Sage Beard 2020 年 5 月 23 日
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.

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by