Combinatorica`
Combinatorica`
RandomGraph
As of Version 10, most of the functionality of the Combinatorica package is built into the Wolfram System. »
RandomGraph[n,p]
constructs a random labeled graph on vertices with an edge probability of .
更多信息和选项
- RandomGraph functionality is now available in the built-in Wolfram Language function RandomGraph.
- To use RandomGraph, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
- An option Type is provided, which can take on values Directed and Undirected, and whose default value is Undirected.
- Type->Directed produces a corresponding random directed graph.
- The usages RandomGraph[n,p,Directed], RandomGraph[n,p,range], and RandomGraph[n,p,range,Directed] are all obsolete. Use SetEdgeWeights to set random edge weights.
Wolfram Research (2012),RandomGraph,Wolfram 语言函数,https://reference.wolfram.com/language/Combinatorica/ref/RandomGraph.html.
文本
Wolfram Research (2012),RandomGraph,Wolfram 语言函数,https://reference.wolfram.com/language/Combinatorica/ref/RandomGraph.html.
CMS
Wolfram 语言. 2012. "RandomGraph." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/RandomGraph.html.
APA
Wolfram 语言. (2012). RandomGraph. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/Combinatorica/ref/RandomGraph.html 年