Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/latentcat/network-vis
WIP. Visualization of social networks. 社交网络可视化。
https://github.com/latentcat/network-vis
complex-networks data data-science graph graph-visualization social-media social-network-analysis visualization wechat
Last synced: 3 days ago
JSON representation
WIP. Visualization of social networks. 社交网络可视化。
- Host: GitHub
- URL: https://github.com/latentcat/network-vis
- Owner: latentcat
- Created: 2024-04-13T08:16:36.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-16T07:36:37.000Z (7 months ago)
- Last Synced: 2024-11-17T01:15:26.988Z (3 days ago)
- Topics: complex-networks, data, data-science, graph, graph-visualization, social-media, social-network-analysis, visualization, wechat
- Homepage:
- Size: 9.09 MB
- Stars: 13
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# social-vis
## WeChat Memory Like Relationship Vis
### Data Crawl
> TBD.
### Data Struct (Example)
```json
{
"isCurrentUser": false,
"snsId": "...",
"authorName": "...",
"authorId": "...",
"content": "...",
"comments": [],
"likes": [
{
"isCurrentUser": false,
"userName": "...",
"userId": "..."
}
],
"mediaList": [
"http://..."
],
"rawXML": "...",
"timestamp": 1569122476
}
```### Data Process
```mathematica
gr = Flatten[
Table[Table[
UndirectedEdge[dataset[j, 7, "likes", All, "userName"][i],
dataset[j, 3, "authorName"]], {i, 1,
Length[dataset[j, 7, "likes"]]}], {j, 1, 7418}]];
```### Variation 1
![](./assets/wechat-01.jpg)
```mathematica
style = {EdgeStyle ->
Directive[Opacity[.05], Black, Thickness -> 0.00001],
Background -> White, EdgeShapeFunction -> (Line[#1] &),
ImageSize -> 30000};
CommunityGraphPlot[gr, style]
```### Variation 2
![](./assets/wechat-02.jpg)
```mathematica
style = {EdgeStyle -> Directive[Opacity[.05], Black, Thickness -> 0.0001], ImageSize -> 3000};
graph = CommunityGraphPlot[gr,CommunityBoundaryStyle -> None, style,
VertexLabels -> "Name",
VertexLabelStyle -> Directive[Black, Opacity[1], 2]]
```## Houdini Node Vis
```python
import hou
import jsondata = []
tools = hou.shelves.tools()
for node_category in hou.nodeTypeCategories().values():
category_name = node_category.name()node_types = node_category.nodeTypes()
for node_type in node_types.values():
default_tool_name = hou.shelves.defaultToolName(
category_name,
node_type.name()
)
node_tool = tools.get(default_tool_name.lower())node_data = {}
node_data["category"] = category_name
node_data["name"] = node_type.name()
node_data["nameComponents"] = node_type.nameComponents()
node_data["description"] = node_type.description()if node_tool:
node_data["toolMenuLocations"] = node_tool.toolMenuLocations()
node_data["toolLabel"] = node_tool.label()data.append(node_data)
with open('/Users/ciaochaos/Downloads/houdini_data.json', 'w') as file:
file.write(json.dumps(data, indent=4))
```![](./assets/houdini-01.jpg)
![](./assets/houdini-02.jpg)
![](./assets/houdini-03.jpg)
![](./assets/houdini-04.jpg)
![](./assets/houdini-05.jpg)