Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.52 KB

README.md

File metadata and controls

23 lines (16 loc) · 1.52 KB

Shoko Anime Relation DOT Generator

Generates a DOT file for use with graphviz which will generate a graph of the Shoko anime relations.

GraphViz can be downloaded from here

To use, configure SQL Server connection string in the config file, then run the application. The DOT file content will be written to standard output. To save to a file, simply redirect standard output to a file (e.g. ShokoAnimeRelation.exe > relations.dot)

Once a DOT file has been created, you can use GraphViz to generate an SVG. For example, from a command prompt (Assumes GraphViz is installed to "D:\GraphViz"): D:\GraphViz\bin\sfdp -Tsvg -o relations.svg relations.dot or you can skip the intermediate DOT file and just pipe the result straight through, e.g. ShokoAnimeRelation.exe | D:\GraphViz\bin\sfdp -Tsvg -o relations.svg

The generated graph only contains anime that has one or more relations (and is rather messy). The background colours for the nodes should match roughly what AniDB has. The grey dashed relation arrows indicate that those relations aren't considered when calculating Anime Groups. The red square nodes are anime that have a relation, but have no AniDB_Anime record. The double octagon nodes are the series that Shoko would be choosing as the main series of the AnimeGroup. Also, each node can be clicked to open it's anidb page in a separate browser tab.

(NOTE: code developed using Jetbrains Rider 2017.3, should probably compile in VS 2017, etc.)