algorithms.py 264 B

1234567891011121314
  1. from typing import List, Optional
  2. from pydantic import BaseModel
  3. class GraphColoringResponse(BaseModel):
  4. black: List[str]
  5. white: List[str]
  6. random: List[str]
  7. class GraphColoringRequest(BaseModel):
  8. vertexes: List[str]
  9. edges: List[List[str]]