-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
271 changed files
with
99,315 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Lua coding style for the graphdrawing library | ||
============================================= | ||
|
||
General naming rules and indentation: | ||
|
||
* 2 spaces indentation | ||
* variable_names_with_underscores | ||
* namespaced.low_level_functions_with_underscores(foo, bar) | ||
* CamelCaseClassNames | ||
* CamelCaseClassNames.nameOfStaticFunctionLikeNewOrClone(foo, bar) | ||
* CamelCaseClass:functionNamesLikeThis(foo, bar) | ||
* never use global variables | ||
* Use . for static functions and : for member functions | ||
|
||
LuaDoc comments: | ||
|
||
--- | ||
-- A function to do this and that. | ||
-- | ||
-- @param first Description of the first parameter. | ||
-- @param second Description of the second parameter. | ||
-- | ||
-- @return This function returns something. | ||
-- | ||
function myClass:myFunction(first, second) | ||
... | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
graph [layered layout] { | ||
Alice; | ||
Bob; | ||
Charly; | ||
Dave; | ||
Eve; | ||
Fritz; | ||
George; | ||
Alice -> Bob; | ||
Alice -> Charly; | ||
Charly -> Dave; | ||
Bob -> Dave; | ||
Dave -> Eve; | ||
Eve -> Fritz; | ||
Fritz -> Alice; | ||
George -> Eve; | ||
George -> Fritz; | ||
Alice -> George; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.