Make a graph for Alice!

Discussion in 'Announcements' started by sk89q, 9 June 2012.

Tags:
  1. sk89q

    sk89q Administrator
    Staff Member

    Joined:
    1 December 2011
    Messages:
    2.490
    Likes Received:
    1.504
    If you've got a complicated setup of pipes and what not, you can easily make a graph detailing all the connections (and colors if need be). For example, for base, its relevant graph is:

    layout.png

    It is generated with GraphViz, using the PRETTY straight forward code:

    Code:
    digraph g {
    node [ fontname=Arial, fontsize=10, shape=box, style="filled" ];
    edge [ fontname=Arial, fontsize=9 ];
     
    Processing -> Storage
    CaveSpiderFarm -> Processing [label="Spider Eyes\nString"]
    SkeletonFarm -> DistA [label="Bones"]
    SkeletonFarm -> Processing [label="Arrows\nBones"]
    DistA -> Processing [label="Bones"]
    DistA -> DistA [label="Bonemeal"]
    DistA -> TreeFarm [label="Bonemeal"]
    DistA -> BonemealFarm [label="Bonemeal"]
    TreeFarm -> DistB [label="Logs"]
    TreeFarm -> Processing [label="Apples"]
    TreeFarm -> Power [label="Saplings"]
    DistB -> Processing [label="Logs"]
    DistB -> Charcoaler [label="Logs"]
    DistB -> CokeOven [label="Logs"]
    CokeOven -> Processing [label="Cresote Oil\nCharcoal"]
    Charcoaler -> Processing [label="Charcoal"]
    WheatFarm -> Processing [label="Wheat\nBread"]
    WheatFarm -> WheatFarm [label="Bread"]
    WheatFarm -> AnimalSmasher [label="Wheat"]
    SugarCaneFarm -> Processing [label="Sugar Cane"]
    CactiFarm -> Processing [label="Cacti"]
    AnimalSmasher -> Processing [label="Leather\nPork\nBeef"]
    BonemealFarm -> Processing [label="Seeds\nFlax Seeds\nRoses\nYellow Flowers\nIndigo Flowers"]
    Power->Power [label="Plant Clumps"]
     
    Storage->Silo [label="Charcoal\nCoal\nBread\nLogs\nRubber Wood\nBonemeal\nSpider Eyes\nString"]
    Storage->Discard [label="Cobblestone\nSeeds\nFlax Seeds\nDirt\nSand\nSigns\nPlanks"]
     
    Power->TreeFarm [color="red", label="EU", fontcolor="red"]
    Power->WheatFarm [color="red", label="EU", fontcolor="red"]
     
    CaveSpiderFarm [label="Cave Spider Farm", fillcolor="white", style="dashed"]
    SkeletonFarm [label="Skeleton Farm", fillcolor="white", style="dashed"]
    DistA [label="Distribution A", fillcolor="blue", fontcolor="white"]
    DistB [label="Distribution B", fillcolor="blue", fontcolor="white"]
    TreeFarm [label="Tree Farm", fillcolor="red"]
    Power [label="Power Station", fillcolor="orange"]
    Storage [label="Storage", fillcolor="cyan"]
    Processing [label="Processing", fillcolor="darkgreen", fontcolor="white"]
    WheatFarm [label="Wheat Farm", fillcolor="lightblue"]
    CokeOven [label="Coke Ovens", fillcolor="white"]
    Charcoaler [label="Charcoaler", fillcolor="black", fontcolor="white"]
    AnimalSmasher [label="Animal Smasher", fillcolor="gray"]
    BonemealFarm [label="Flower/Seed Farm", fillcolor="magenta"]
    SugarCaneFarm [label="Sugar Cane Farm", fillcolor="white", style="dashed"]
    CactiFarm [label="Cacti Farm", fillcolor="red"]
    Silo [label="Storage Silo", fillcolor="white", style="dashed"]
    Discard [label="Discard Items", fillcolor="pink", style="dashed,filled"]
    }
    Instead of installing GraphViz, you can use this online editor:
    http://graphviz-dev.appspot.com/

    All the attributes that you can use (label, fillcolor, etc.) can be found here:
    http://www.graphviz.org/pub/scm/graphviz2/doc/info/attrs.html
     
    thtredstonegui likes this.
  2. thtredstonegui

    thtredstonegui Youtuber

    Joined:
    3 December 2011
    Messages:
    533
    Likes Received:
    176
    Here is a flowchart for the solar panel factory me and Millfreedom were working on while Alice was on 1.1.
    Code:
    digraph g{
      node [ fontname=Arial, fontsize=10, shape=box, style="filled" ];
      edge [ fontname=Arial, fontsize=9 ];
     
      HVarrays -> MFSUarray [color="red", label="EU", fontcolor="red"]
      MFSUarray -> MassFab [color="red", label="EU", fontcolor="red"]
      MFSUarray -> Macerator [color="red", label="EU", fontcolor="red"]
      MFSUarray-> Furnace [color="red", label="EU", fontcolor="red"]
      MFSUarray -> Extractor [color="red", label="EU", fontcolor="red"]
     
      BlutricSolars -> BatteryBox [color="blue", label="Blutricity", fontcolor="black"]
      BatteryBox -> Sorter [color="blue", label="Blutricity", fontcolor="black"]
      BatteryBox -> AlloyFurnace [color="blue", label="Blutricity", fontcolor="black"]
     
      Sun -> HVarrays [color="yellow", label="Sunlight", fontcolor="black"]
      Sun -> BlutricSolars [color="yellow", label="Sunlight", fontcolor="black"]
     
      MassFab -> Sorter [label="UU Matter"]
      Sorter -> Tin
      Sorter -> Copper
      Sorter -> Resin
      Sorter -> Redstone
      Sorter -> Coal
      Sorter -> Logs
      Sorter -> Diamond
      Sorter -> Lapis
      Sorter -> Glowstone
     
      Tin -> Macerator
      Copper -> Macerator
      Coal -> Macerator
      Resin -> Extractor
      Cobblegen -> Macerator
      Macerator -> Furnace
      Furnace -> BucketMaker [label="Tin"]
      BucketMaker -> AlloyFurnace
      AlloyFurnace -> Furnace [label="Iron"]
      Logs -> Wood
     
      Furnace -> Batteries [label="Tin"]
      Redstone -> Batteries
      CopperCable -> Batteries
     
      Extractor -> CopperCable [label="Rubber"]
      Furnace -> CopperCable [label="Copper"]
     
      Furnace -> Circuits  [label="Refined Iron"]
      Redstone -> Circuits
      CopperCable -> Circuits
     
      Furnace -> MachineBlocks [label="Refined Iron"]
     
      Cobblegen -> Furnaces
     
      Furnaces -> Generators
      MachineBlocks -> Generators
      Batteries -> Generators
     
      Generators -> SolarPanels
      Circuits -> SolarPanels
      Macerator -> SolarPanels [label="Coal Dust"]
      Furnace -> SolarPanels [label="Glass"]
     
      CopperCable -> LV
      Furnace -> LV [label="Copper"]
      Wood -> LV
     
      CopperCable -> MV
      MachineBlocks -> MV
     
      SolarPanels -> LVsolar
      LV -> LVsolar
     
      LVsolar -> MVsolar
      MV -> MVsolar
     
      Diamond -> EnergyCrystals
      Redstone -> EnergyCrystals
      EnergyCrystals -> HV
      MV -> HV
      Circuits -> HV
      CopperCable -> HV
     
      MVsolar -> HVsolar
      HV -> HVsolar
     
      HVsolar -> HVarrays
     
      Lapis -> Lapotrons
      EnergyCrystals -> Lapotrons
      Circuits -> Lapotrons
      Macerator -> CarbonFibres [label="Coal Dust"]
      CarbonFibres -> CarbonFibres [label="Carbon Mesh\nRaw Carbon Fibres"]
      CarbonFibres -> Compressor
      Furnace -> MixedMetalIngots [label="Tin\nCopper\Refined Iron"]
      MixedMetalIngots -> MixedMetalIngots [label="Bronze"]
      MixedMetalIngots -> Compressor
      Compressor -> AdvancedMachines [label="Advanced Alloy\nCarbon Plate"]
      MachineBlocks -> AdvancedMachines
      EnergyCrystals -> MFEs
      CopperCable -> MFEs
      MachineBlocks -> MFEs
      Circuits -> AdvancedCircuits
      Glowstone -> AdvancedCircuits
      Lapis -> AdvancedCircuits
      Redstone -> AdvancedCircuits
      AdvancedCircuits -> MFSUs
      AdvancedMachines -> MFSUs
      Lapotrons -> MFSUs
      MFEs -> MFSUs
     
      MFSUs -> MFSUarray
     
      Sun [label="The Sun", fillcolor="yellow"]
      HVarrays [label="HV Solar Arrays", fillcolor="lightblue"]
      MFSUarray [label="MFSU Array", fillcolor="red"]
      MassFab [label="Mass Fabricator", fillcolor="green"]
      Sorter [label="RP2 Sorting Machine", fillcolor="purple"]
      BlutricSolars [label="RP2 Solar Panels", fillcolor="blue"]
      BatteryBox [label="RP2 BatteryBox", fillcolor="darkgreen"]
      Resin [label="Sticky Resin", fillcolor="orange"]
      Copper [label="Copper Ore", fillcolor="orange"]
      Coal [label="Coal", fillcolor="black", fontcolor="white"]
      Tin [label="Tin Ore", fillcolor="White"]
      Redstone [label="Redstone Dust", fillcolor="red"]
      Logs [label="Logs", fillcolor="brown"]
      Diamond [label="Diamond", fillcolor="lightblue"]
      Glowstone [label="Glowstone Dust", fillcolor="yellow"]
      Lapis [label="Lapis Lazuli", fillcolor="blue"]
      LV [label="Low Voltage Transformers", fillcolor="brown"]
      MV [label="Medium Voltage Transformers", fillcolor="white"]
      HV [label="High Voltage Transformers", fillcolor="red"]
      EnergyCrystals [label="Energy Crystals", fillcolor="red"]
      Lapotrons [label="Lapotron Crystals", fillcolor="blue"]
      MFEs [label="MFEs", fillcolor="white"]
      MFSUs [label="MFSUs", fillcolor="red"]
      AdvancedCircuits [label="Advanced Circuits", fillcolor="lightblue"]
      Wood [label="Wooden Planks", fillcolor="brown"]
      Generators [label="Generators", fillcolor="white"]
      Furnace [label="Furnace", fillcolor="white"]
      Macerator [label="Macerator", fillcolor="white"]
      Extractor [label="Extractor", fillcolor="white"]
      Compressor [label="Compressor", fillcolor="white"]
      CarbonFibres [label="Carbon Fibres", fillcolor="black", fontcolor="white"]
      MixedMetalIngots [label="Mixed Metal Ingots", fillcolor="orange"]
      Cobblegen [label="Cobblestone Generator", fillcolor="grey"]
      Furnaces [label="Furnaces", fillcolor="grey"]
      BucketMaker [label="Tin -> Buckets", fillcolor="grey"]
      AlloyFurnace [label="Blulectric Alloy Furnace", fillcolor="brown"]
      MachineBlocks [label="Machine Blocks", fillcolor="white"]
      CopperCable [label="Copper Cables", fillcolor="orange"]
      Circuits [label="Electronic Circuits", fillcolor="red"]
      AdvancedMachines [label="Advanced Machines", fillcolor="lightgrey"]
      Batteries [label="Rechargeable Batteries", fillcolor="red"]
      SolarPanels [label="IC2 Solar Panels", fillcolor="blue"]
      LVsolar [label="Low Voltage Solar Arrays", fillcolor="brown"]
      MVsolar [label="Medium Voltage Solar Arrays", fillcolor="orange"]
      HVsolar [label="High Voltage Solar Array", fillcolor="red"]
    }
    Thanks for sharing the flowchart editor! This will definitely come in handy (in fact it's just what I need for my schoolwork).
     
    Chaeris likes this.
  3. Chaeris

    Chaeris Active Member

    Joined:
    8 March 2012
    Messages:
    766
    Likes Received:
    89
    So complicate graph in final (I checked on the website) but also a nice work, thanks for this amazing graph wich I think took you more than 2 hours to create ! [​IMG]
     
  4. Neonbeta

    Neonbeta Person who did stuff and things

    Joined:
    2 March 2012
    Messages:
    2.603
    Likes Received:
    757
    Chaeris you really like your meme's don't you?
     
  5. Chaeris

    Chaeris Active Member

    Joined:
    8 March 2012
    Messages:
    766
    Likes Received:
    89
    Yeah! [​IMG]
     
    xXMadNessXx likes this.
  6. LGuasso

    LGuasso Community Manager
    Staff Member

    Joined:
    12 March 2012
    Messages:
    465
    Likes Received:
    299
    Isn't there an "interactive interface" for it?
    I mean, you add the boxes and all the stuff and it goes automatically writing the code!
     
  7. Chaeris

    Chaeris Active Member

    Joined:
    8 March 2012
    Messages:
    766
    Likes Received:
    89
    Hte website sk provided doesn't do it, but search on google for it, it would be better!
     
    LGuasso likes this.
  8. LGuasso

    LGuasso Community Manager
    Staff Member

    Joined:
    12 March 2012
    Messages:
    465
    Likes Received:
    299
    Well I search, and I have founded nice tools, but no one uses the same "language" as graphviz... I wanted to have a thing that I could show to you easily by sending the graphviz code!

    I guess that language is something like "dot language", I don't know exactly but anyway thanks for replying!