csv2gexf/info.py
2023-05-09 08:08:28 +02:00

20 lines
1.1 KiB
Python

# URL to gist files.
node_example = 'https://gist.githubusercontent.com/lasseedfast/1d43f23da417d64c34d304048ff58b70/raw/64b68b32318b18cfb69a509f9285f6fd0cfc4af0/nodes_example.csv'
relations_example = 'https://gist.githubusercontent.com/lasseedfast/c8548d13202d434e6801c3eed70d0586/raw/72bccc5d4b089c35620c00863aedad7ca3265627/relations_example.csv'
# Make links grey/black.
css = """<style>
a:link {color: grey;}
a:visited {color: grey;}
a:hover {color: grey;}
</style>
"""
explainer = f"""
If you upload only a file with relations the nodes will be created from that one and will only have a label.
You can also upload a separate file with nodes and more information about them. If so make sure the nodes correlate
to the source/target column in the relations file.
If you use *source*, *target* and *label* in your files the process here is almost automatic (see examples).
Examples for [relation file]({relations_example}) and [node file]({node_example}).
*No data is stored*, check [code on Github](https://github.com/lasseedfast/csv2gexf). Made by [Lasse Edfast](https://lasseedfast.se).
"""