简体   繁体   English

图中的层次结构

[英]Hierarchy in a graph

How can one compute or quantify the hierarchical nature of a given graph, if there is a hierarchy in that graph ? 如果该图有层次结构,该如何计算或量化给定图的层次结构性质? More specifically, i want to know if some sort of hierarchy existed in artificial neural network (with some number of hidden layers). 更具体地说,我想知道人工神经网络中是否存在某种层次结构(具有一定数量的隐藏层)。 and also want to measure that. 并且也想衡量一下。

This is an interesting open ended question and so I'll answer loosely and off the cuff. 这是一个有趣的开放式问题,因此,我将轻松地回答,不要袖手旁观。 So you want to find out if the graph is logically like a tree? 因此,您想确定图在逻辑上是否像一棵树? There is no up or down in a graph, so probably what you are really looking for is a way to find the node or nodes in your graph that are the most highly connected to other highly connected nodes, and then take a certain perspective supposition and determine if a "tree" like graph makes sense using that node as the trunk or root of the tree. 图中没有向上或向下的关系,因此您可能真正想要的是找到图中图中与其他高度连接的节点之间具有最高连接度的一个或多个节点,然后采用某种角度的假设并使用该节点作为树的主干或根,确定“树”状图是否有意义。 Another thing you could do is just choose any random node, suppose that is the root of the tree, and then see what happens. 您可以做的另一件事是只选择一个随机节点,假设它是树的根,然后看看会发生什么。 You can re-balance the tree if the node connections lead you to want to do that based on a certain number of connections or traversals, and you can attempt to find the "real root" - if there is such a thing. 如果节点连接导致您想要基于一定数量的连接或遍历进行此操作,则可以重新平衡树,并且可以尝试找到“真实根”(如果有)。 If you re-balance a certain number of times, or detect a circular path has been traversed, you may decide that the graph is not very hierarchical at all. 如果重新平衡一定次数,或者检测到遍历了圆形路径,则可能会决定该图根本不是非常分层的。 If you do find a "real root", then you might then decide to look for depth, avg. 如果您确实找到了“真正的根”,那么您可能会决定寻找深度avg。 branch numbers, balance stats, etc. If you refine the question, I'll refine my answer. 分支机构编号,余额统计信息等。如果您细化问题,我将细化答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM