DagSolution is a Go implementation of a Directed Acyclic Graph (DAG) approach, suitable for various computational applications like task scheduling, dependency resolution, and more.
- DAG implementation in Go
- Reads data from a single JSON file (
data.json) - Simple execution with minimal setup
- Go (Golang) 1.21 or higher installed
- Download Go
-
Clone the repository
git clone <repository_url> cd DagSolution
-
Run the application
go run .
The application expects a JSON file with an array of objects, each containing:
date: A string representing the dateprice: A floating-point number representing the price
[
{
"date": "2023-07-17",
"price": 1871.63
},
{
"date": "2023-07-18",
"price": 1817.13
}
]Modify data.json to process your own data set.