boundary(graph)
boundary()所属R语言包:graph
Returns the Boundary between a Graph and a SubGraph
返回图和子图之间的边界。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The boundary of a subgraph is the set of nodes in the original graph that have edges to nodes in the subgraph. The function boundary computes the boundary and returns it as a list whose length is the same length as the number of nodes in the subgraph.
子的边界是原始图中的节点有子节点的边缘。功能boundary计算的边界,它返回一个列表,它的长度是相同长度的子节点的数量。
用法----------Usage----------
boundary(subgraph, graph)
参数----------Arguments----------
参数:graph
the original graph from which the boundary will be created
从边界将创建原始图
参数:subgraph
can either be the vector of the node labels or the subgraph itself.
可以是节点的标签或子本身的向量。
Details
详情----------Details----------
The boundary of a subgraph is the set of nodes in the graph which have an edge that connects them to the specified subgraph but which are themselves not elements of the subgraph.
子的边界是有优势的,它们连接到指定的子,但其本身不是元素的子图中的节点集。
For convenience users can specify the subgraph as either a graph or a vector of node labels.
为方便起见,用户可以指定一个图或节点标签的向量子。
值----------Value----------
This function returns a named list of length equal to the number of nodes in subgraph. The elements of the list correspond to the nodes in the subgraph. The elements are lists of the nodes in graph which share an edge with the respective node in subgraph.
这个函数返回一个长度等于节点subgraph的数量命名名单。列表中的元素对应节点subgraph。元素节点列表graph购与subgraph各个节点的边缘。
作者(S)----------Author(s)----------
Elizabeth Whalen and R. Gentleman
参见----------See Also----------
subGraph, graph-class
subGraph,graph-class
举例----------Examples----------
set.seed(123)
g1 <- randomGraph(letters[1:10], 1:4, p=.3)
##both should be "a"[#都应该是“”]
boundary(c("g", "i"), g1)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|