social-graph

igraph edge between two vertices

杀马特。学长 韩版系。学妹 提交于 2020-01-23 02:54:06
问题 I'm new to R and igraph and I was wondering if anybody can help me with the following. I want to find the edge weight between two vertices in a graph. My graph structure is defined by the normal ego (node1), alter (node2) and the weight of the edge between them. I know that I can get the weight for each of the edges in the list of edges that originate from node number 5 using E(igraph_friendship) [ from(5) ]$weight And that I can find the weight for each of the edges in the list of edges that

Mapping the link network between blogs using R?

自古美人都是妖i 提交于 2019-12-10 14:09:24
问题 I would like any advice on how to create and visualize a link map between blogs so to reflect the "social network" between them. Here is how I am thinking of doing it: Start with one (or more) blog home page and collect all the links on that page Remove all the links that are internal links (that is If I start from www.website.com. Then I want to remove all the links from the shape "www.website.com/***"). But store all the external links. Go to each of these links (assuming you haven't

How do I visualize social networks with Python

痴心易碎 提交于 2019-12-03 00:49:20
问题 I need to define a social network, analyze it and draw it. I could both draw it by hand and analyze it (calculate various metrics) by hand. But I would not like to reinvent the wheel. I have tried to use matplotlib, but I need to use it interactively, and in a few lines tell it how to load the data, and then call a render function, that will render the graph as a SVG. How can I visualize social networks in the described way? 回答1: networkx is a very powerful and flexible Python library for