加权页面排名图表示

时间:2019-02-11 08:32:45

标签: python algorithm neo4j

我有一个像这样的图

 <ScrollView contentContainerStyle={{ flexGrow: 1 }}
    scrollEnabled >
  <View style={styles.fieldsContainer}>
  <View>
  <Text style={styles.headline}>Personal Info</Text>
  </View>
 <Text></Text>

现在,我认为在页面排名算法中,任务C应该具有更高的页面排名。但这没有发生。我正在使用Neo4j的页面等级算法来导入图形。我的问题是我以不正确的方式表示图形。

我认为这是表示图形并基于图形计算页面等级的普遍问题。

我应该将图形表示为:

    const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#F5FCFF',
    alignItems: 'stretch',
  },
fieldsContainer: {
    flex: 1,
    margin:10,
    paddingTop:30,
    paddingLeft:20,
    backgroundColor: '#D3D3D3',
    alignItems: 'stretch',
    alignItems: 'center',
  },
  textLabelsStyle: {
fontSize:34,
fontWeight:'bold',
color:'black',
  },
  headline: {
    textAlign: 'center', 
    fontWeight: 'bold',
    fontSize: 18,

    marginTop: 0,
    width: 200,
    backgroundColor: 'yellow',
  },

我也用python编写了一个程序,但是基本问题是如何表示边缘图相同

1 个答案:

答案 0 :(得分:1)

您可以将边缘的权重用作两个节点之间关系的属性。

(A)-[:CONNECTED_TO {"Time" : 900 }]->(B)

我希望这种格式能对您有所帮助。如需进一步的应用,可以参考docs

相关问题