lamelizard / graphwavefunctioncollapse Goto Github PK
View Code? Open in Web Editor NEWWaveFunctionCollapse on graphs
License: MIT License
WaveFunctionCollapse on graphs
License: MIT License
Hi! Would it be possible to get some kind of guide (in English) for how to actually work with the code?
While one has to appreciate the fact it is uploaded, it is fairly impossible to figure out how to use it properly. For example, how does one make "spherical planet" sort of graph?
Thanks!
I tried to run the code in the readme:
import networkx as nx
import graphwfc
GI = nx.Graph([(1,2),(2,3),(3,4)])
GI.add_nodes_from([(1,{'c':1}),(2,{'c':1}),(3,{'c':2}),(4,{'c':3})])
GL = nx.DiGraph([(1,2)])
GO = nx.random_tree(1000)
But it raises the following networkx error: AttributeError: 'Graph' object has no attribute 'pred'
I'm using networkx==2.5
Originally posted by @asher-pembroke in #1 (comment)
Is there a way to initialize a few nodes of the output graph? I'm trying to propagate known colors for some of the nodes, but my output graph appears to ignore them. If need be I'll post some example code.
As PR #3 stated (#3's note was about GIs), we do not have an example for GLs yet,
is there a good simple example?
We could do the "Eight queens puzzle" with rocks and kings
-> allow GWFC to insert some rocks and kings and no piece may be able to hit another piece
-> requires 3 GLs (2 for rocks, 1 for kings)
but this is boring (but music or art is probably too much code as a simple example?)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.