This file contains hidden or 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
| import java.util.*; | |
| public class Main { | |
| static Scanner input = new Scanner(System.in); | |
| static Menu[] daftarMenu = new Menu[20]; | |
| static int jumlahMenu = 0; | |
| public static void main(String[] args) { | |
| inisialisasiMenu(); | |
| int pilihan; |
This file contains hidden or 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
| # Class dari buku | |
| class Book: | |
| def __init__(self, title, author): | |
| self.title = title | |
| self.author = author | |
| def __str__(self): | |
| return f"Judul: {self.title}, Penulis: {self.author}" |
This file contains hidden or 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
| import networkx as nx | |
| import matplotlib.pyplot as plt | |
| graf = { | |
| 'A': ['B', 'C'], | |
| 'B': ['A', 'C', 'D'], | |
| 'C': ['A', 'B', 'D'], | |
| 'D': ['B', 'C', 'E', 'F'], | |
| 'E': ['D', 'F', 'G'], | |
| 'F': ['D', 'E', 'H'], |