Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 React from "react"; | |
| import { Text, View, StatusBar, Image } from "react-native"; | |
| import styled from "styled-components"; | |
| import { NavigationScreenProp, NavigationState } from 'react-navigation'; | |
| import Swiper from 'react-native-swiper'; | |
| import ProfileInputContainer from "../components/profile/ProfileInputContainer"; | |
| import AvailableProgram from "../components/profile/AvailableProgram"; | |
| import ConnectUtility from "../components/profile/ConnectUtility"; | |
| interface NavigationParams { | |
| text: string; |
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
| _toggleComplete = () => { | |
| this.setState(prevState => { | |
| return { | |
| isCompleted: !prevState.isCompleted | |
| }; | |
| }); | |
| }; | |
| _startEditing = () => { | |
| const { text } = this.props; | |
| this.setState({ isEditing: true, toDoValue: text }); |
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
| $ java Represent_Graph_Adjacency_Matrix | |
| Enter the number of vertices: | |
| 4 | |
| Enter the number of edges: | |
| 6 | |
| Enter the edges: | |
| 11 | |
| 34 | |
| 23 | |
| 14 |
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.Scanner; | |
| public class Represent_Graph_Adjacency_Matrix { | |
| private final int vertices; | |
| private int[][] adjacency_matrix; | |
| private int[][] adjacency_matrix; | |
| public Represent_Graph_Adjacency_Matrix(int v) { | |
| vertices = v; | |
| adjacency_matrix = new int[vertices + 1][vertices + 1]; } | |
| public void makeEdge(int to, int from, int edge) { |